PoC Monitor
← All CVEs
CVE-2026-48031published 3 Aug 2026 19:05 UTCData: JSON · API

Dhax go-base

Go Restful API Boilerplate: Hardcoded JWT Secret "random" Allows Token Forgery

go-base is a Go RESTful API Boilerplate template with JWT Authentication, backed by PostgreSQL. In versions prior to 2026-05-18, the JWT signing secret is hardcoded to the known string "random", letting any attacker who reads the public repository forge tokens for arbitrary users, including admin roles, and completely bypass authentication on all protected endpoints. This value is set in two places: the dev.env template (line 10) and a programmatic fallback in cmd/serve.go (line 35), so the application uses it even when no .env file is present. The original mitigation in auth/jwt/tokenauth.go (lines 22 to 25) only caught the exact string "random", letting other weak secrets through, and replaced it with an in-memory key that was not persisted, invalidating all tokens on every restart and effectively causing a denial-of-service. This issue has been fixed in version 2026-05-18.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS9.1critical · scored by CNA · CWE-798
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record, GitHub Security Advisories and the vendor's references.

Affected

dhax go-base
  • 2026-05-18
github.com/dhax/go-base (Go)
  • < 0.0.0-20260517152733-cc82b9740fa6

Fixed in 0.0.0-20260517152733-cc82b9740fa6

from GitHub Security Advisory GHSA-mqq6-462x-jxmm

Mitigation

Upgrade github.com/dhax/go-base to 0.0.0-20260517152733-cc82b9740fa6 or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published3 Aug 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.