Security Advisory CVE-2026-48031 Kerentanan pada Perangkat go-base
Summary
An authentication bypass vulnerability has been identified in go-base, a Go-based RESTful API boilerplate. Tracked as CVE-2026-48031, this vulnerability is caused by the use of a hardcoded default JWT signing secret within the application code.
Affected Products
- Package
Dhax/go-baseprior to commit0.0.0-20260517152733-cc82b9740fa6
Technical Details
go-base contains a hardcoded JWT signing secret with a default value present in the sample dev.env file, which is reused as the default fallback in the application source code. Because this secret is publicly exposed, an attacker can forge arbitrary JWTs using the HS256 algorithm to claim any identity or role, including administrator. The forged tokens will be trusted by the application.
Impact
An attacker can use forged tokens to bypass authentication, allowing unauthorized access to all protected API endpoints, reading or modifying data, and acquiring new tokens via the refresh token mechanism.
Mitigation
- Update
go-baseto commitcc82b9740fa6or a newer version. - Remove default JWT values such as
random,secret,changeme,change-me,default, or empty strings. - Generate a random JWT signing secret with a minimum length of 32 characters.
References
- Security Advisory CVE-2026-48031 on go-base Device
Advisory ini disajikan tim ICT Cybersecurity PT Pertamina Bina Medika IHC sebagai informasi kesadaran keamanan. Verifikasi pada sumber resmi sebelum tindakan.