


Perceptive Security
SOC/SIEM Consultancy

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 hardc…
Published:
2 August 2026 at 22:00:00
Alert date:
3 August 2026 at 21:04:01
Source:
nvd.nist.gov
Web Technologies, Identity & Access
CVE-2026-48031 affects go-base, a Go RESTful API Boilerplate with JWT Authentication backed by PostgreSQL. In versions prior to 2026-05-18, the JWT signing secret is hardcoded to the known string 'random' in two locations: the dev.env template and a fallback in cmd/serve.go. This allows any attacker who reads the public repository to forge JWT tokens for arbitrary users, including admin roles, completely bypassing authentication on all protected endpoints. An attempted mitigation in auth/jwt/tokenauth.go only caught the exact string 'random', missing other weak secrets, and introduced a secondary denial-of-service issue by using a non-persisted in-memory key that invalidated all tokens on every restart. The vulnerability is particularly severe because the hardcoded secret is publicly known via the open-source repository. The issue has been fully patched in the 2026-05-18 release.
Technical details
Mitigation steps:
Affected products:
go-base
dhax/go-base
Related links:
https://nvd.nist.gov/vuln/detail/CVE-2026-48031
https://github.com/dhax/go-base/commit/cc82b9740fa6b08e0fad409cd4b418e240dd0e00
https://github.com/dhax/go-base/pull/31
https://github.com/dhax/go-base/security/advisories/GHSA-mqq6-462x-jxmm
Related CVE's:
Related threat actors:
IOC's:
This article was created with the assistance of AI technology by Perceptive.
