CVE-2026-76091: go-base: Race condition allows reuse of passwordless login tokens
go-base is a Go RESTful API Boilerplate template with JWT Authentication, backed by PostgreSQL. Prior to version 2026-07-09, the passwordless login flow allows a single login token to be redeemed more than once when concurrent requests submit the same token at nearly the same time. A magic-link login token is expected to be single-use. However, the application checks the token and deletes it in separate lock operations. This creates a race condition where multiple requests can validate the same token before it is removed. As a result, one magic-link login token can create multiple valid authenticated sessions. This issue has been patched in version 2026-07-09.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2026-07-09
Event History
Frequently Asked Questions
Which deployments are affected?
Deployments of go-base prior to version 2026-07-09 that use its passwordless magic-link login flow are affected. The issue concerns the handling of login tokens when the same token is submitted concurrently.
What does an attacker need to exploit this issue?
An attacker needs a valid magic-link login token and must submit concurrent redemption requests using that same token before it is removed. No authentication or user interaction is required by the vulnerability vector.
What is the impact of successful exploitation?
A single token that should produce one authenticated session can instead create multiple valid authenticated sessions. The reported impact is low confidentiality and low integrity impact, with no availability impact.
How can this be remediated?
Upgrade go-base to version 2026-07-09 or later, which contains the patch. The fix needs to ensure token validation and invalidation cannot be raced by concurrent requests.