> CVE-2026-48031 [CRITICAL]

« BACK_TO_HOME
PUBLISHED
2026-08-03 20:17
MODIFIED
2026-08-03 20:17
CVSS_SCORE V3
9.1
EPSS (Prob. Exploit)
0.63%
Top 50.0%
DATA SOURCES:
NVD đź”— 2026-08-03 CWE MITRE đź”— 2026-11-01 FIRST EPSS đź”— 2026-11-01 OSV đź”— 2026-11-02

> 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.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EXPLOITABILITY
3.9
IMPACT
5.2

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
High (H)
Divulgation totale d'informations
I (Impact Intégrité)
Integrity Impact
High (H)
Modification totale des données possible
A (Impact Disponibilité)
Availability Impact
None (N)
Aucune interruption de service

> RÉSUMÉ DES IMPACTS

Confidentialité
High
Divulgation totale d'informations
Intégrité
High
Modification totale des données possible
Disponibilité
None
Aucune interruption de service

> WEAKNESSES

CWE-798

> CWE DETAILED DESCRIPTIONS

CWE-798: Use of Hard-coded Credentials - The product contains hard-coded credentials, such as a password or cryptographic key.

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

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

AFFECTED PACKAGES:
Unknown / Unknown
ALIASES:
GHSA-mqq6-462x-jxmm, GO-2026-5515

> HISTORIQUE DES MODIFICATIONS

Première apparition
03/08/2026 20:17
Source: NVD
📊 ENRICHISSEMENT 01/09/2026 06:02
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-798: Use of Hard-coded Credentials - The product contains hard-coded credentials, such as a password or cryptographic key.
Total des modifications: 1 Dernière mise à jour: 2 months ago

> REFERENCES

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
https://github.com/dhax/go-base/security/advisories/GHSA-mqq6-462x-jxmm
« BACK_TO_HOME