CVE-2026-48031dhax go-base
Crítica 9.1 Sin autenticación
Seguir: esta CVE · dhax · dhax go-base Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 70
- CVSS 3.1
- 9.1
- EPSS
- —
- Requiere autenticación
- No
- Publicada
- 3 ago 2026
- Actualizada
- 23 oct 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-798
- SSVC (CISA)
- Explotación: prueba de concepto · Automatizable: sí · Impacto técnico: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Qué pasa
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.
Qué hacer
- Aplica la actualización de seguridad del fabricante para go-base.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| Go | github.com/dhax/go-base |
< 0.0.0-20260517152733-cc82b9740fa6 |
0.0.0-20260517152733-cc82b9740fa6 |
go get github.com/dhax/go-base@v0.0.0-20260517152733-cc82b9740fa6 |
| Go | github.com/dhax/go-base |
< 0.0.0-20260517152733-cc82b9740fa6 |
0.0.0-20260517152733-cc82b9740fa6 |
go get github.com/dhax/go-base@v0.0.0-20260517152733-cc82b9740fa6 |
Según OSV / GitHub Advisories (GHSA-mqq6-462x-jxmm, GO-2026-5515). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados
- dhax · go-base
Según el CNA que publicó la CVE. NVD todavía no cargó los CPE con versiones.
Boletines oficiales
- Security update for govulncheck-vulndb · SUSE · openSUSE-SU-2026:21483-1 · 30 jul 2026 Crítica
Avisos de fabricantes, CERT y distribuciones que nombran esta CVE. Títulos sin modificar.
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.