Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2026-48031 Details

ANALYZED


This CVE record has been analyzed and enriched by NVDAPI.com as an independent party.

Description

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.

Metrics

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

Weakness Enumeration

CWE-IDCWE NameSource
CWE-798Use of Hard-coded Credentials[email protected]

Affected Products

ProductVersions
dhax go-base
< 2026-05-18

CPE

  • No CPEs found in CPE dictionary for this product.

Remediation

  • Upgrade: 2026-05-18moderate effort
  • Workaround:low effort

    Set the AUTH_JWT_SECRET environment variable to a strong, randomly generated value (at least 32 characters long) instead of the default "random" value.

Change History

2 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2026-48031
NVD Published Date:
Aug 3, 2026
NVD Last Modified:
Sep 10, 2026
Source:
[email protected]
CVE-2026-48031 Details - Not Deferred