Skip to content
Critical 9.1

Vulnerability in github.com/dhax/go-base

CVE-2026-48031 First seen on SecPulse

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

A vulnerability tracked as CVE-2026-48031 has been found in github.com/dhax/go-base.
Attackers can target a specific entry point like dev.env over the network to misuse the product.
Confidential information can be exposed externally. CVSS score: 9.1/10.
What to do: upgrade github.com/dhax/go-base to 0.0.0-20260517152733-cc82b9740fa6 or later.
If unsure, ask your IT team or search "github.com/dhax/go-base CVE-2026-48031" on the vendor's site.

CVE-2026-48031 (github.com/dhax/go-base) — CWE-798 / CVSS v3 9.1
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Attack surface: dev.env
Patched: 0.0.0-20260517152733-cc82b9740fa6 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.

What is the problem

A vulnerability (CWE-798) exists in github.com/dhax/go-base. Attackers reach the vulnerable code path via dev.env without authentication.

Affected scope

Check the vendor advisory for the affected versions of github.com/dhax/go-base. Attack surface: dev.env.

Severity

Severity: Critical (CVSS 9.1/10). Confidential information can be exposed externally.

How to fix

Update to 0.0.0-20260517152733-cc82b9740fa6.

Workaround

Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.

Detection

Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'github.com/dhax/go-base' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.

Response actions

Concrete steps and command examples for SOC/SRE teams to execute in order

  1. 1
    Identify exposureidentify
    grep -r 'github.com/dhax/go-base' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で github.com/dhax/go-base を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    Apply patchpatch
    Upgrade github.com/dhax/go-base to 0.0.0-20260517152733-cc82b9740fa6

    ステージング環境で 0.0.0-20260517152733-cc82b9740fa6 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  3. 3
    Post-deployment verificationverify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

PackageAffected → Fixed
gogithub.com/dhax/go-base
< 0.0.0-20260517152733-cc82b9740fa6→ 0.0.0-20260517152733-cc82b9740fa6
Original description The description as published by the source.

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.

Source: GitHub Security Advisories (Global) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details