CVE-2026-67335
better-auth before 1.6.2 OAuth State Validation Bypass
- State
- Published
- Severity
- 6.0 Medium
- Published
- Aug 1, 2026
- Updated
- Aug 3, 2026
- Reserved
- Jul 29, 2026
Description
better-auth versions before 1.6.2 fail to validate the OAuth state parameter against the stored nonce when using cookie-backed state storage without PKCE. Attackers can forge the state parameter and supply an attacker-controlled authorization code to create authenticated sessions bound to the attacker's external identity or persistently link attacker accounts to victim profiles.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 6.0 Medium | CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N | VulnCheck |
| 3.1 | 5.3 Medium | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N | VulnCheck |
Weaknesses
- CWE-287 Improper Authentication
Affected Products
| Product | Versions |
|---|---|
better-authbetter-auth |
|
References
- GitHub Security Advisory (GHSA-wxw3-q3m9-c3jr)vendor-advisory
- VulnCheck Advisory: better-auth before 1.6.2 OAuth State Validation Bypassthird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.