CVE-2026-48031General

LOWCVSS 9.1 · CRITICAL

Signal is active with 1 mentions in latest observed window

Immediate actions

  • Track advisory updates for patch or workaround availability

Recommended action window: Monitor and triage in normal cycle

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

0.0/ 10 priority

Sources & remediation

Weakness type (CWE)
CWE-798

Priority

LOW

Exploitation

NONE

PoC

NONE

Patch

NONE

Momentum

STABLE

Threat summary

  • 2 mentions across 2 observed days
  • Momentum state: stable

What's happening

  • Technical details provided in 1 signal
  • General: 2 classified signals
  • Peaked 1d ago at 1 mentions (2026-06-10); latest day: 1
  • 2 total mentions across 2 days

Deep dive

Activity timeline2 mentions / 2d
00111Mentions · 2026-06-10: 1Mentions · 2026-08-03: 1Technical Details · 2026-06-10: 106-1008-03
Signal classification1 categories
General
2100.0%
Referenced assets3 URLs
Full discourse2 posts
  • SecureShield@SecureShield_
    General

    一次情報(NVD): https://nvd.nist.gov/vuln/detail/CVE-2026-48031 参照元(ベンダー等): https://github.com/dhax/go-base/commit/cc82b9740fa6b08e0fad409cd4b418e240dd0e00, dhax/go-base#31

    Post summary

    The post simply lists the NVD link for CVE-2026-48031 and a GitHub commit reference, providing no additional context or technical information.

    0000029
    25 followersView on X
  • DailyCVE@dailycve
    General

    🔴 Go REST API Boilerplate (go-base), Hardcoded JWT Secret (CWE-798), #CVE-2026-48031 (Critical) -DC-Jun2026-325 https://dailycve.com/go-rest-api-boilerplate-go-base-hardcoded-jwt-secret-cwe-798-cve-2026-48031-critical-dc-jun2026-325/

    Post summary

    This post identifies CVE‑2026‑48031 as a critical issue in Go REST API Boilerplate caused by a hard‑coded JWT secret, but provides no exploit, patch, or activity details.

    0000035
    210 followersView on X

Explore more