CVE-2026-67335
MEDIUM 6.0CVSS 4.0Better Auth: OAuth callback accepts mismatched `state` when cookie-backed state storage is used without PKCE
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.
- Published
- 1 Aug 2026
- Last modified
- 8 Sep 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Deferred
- Weakness
- CWE-287CWE-345CWE-352
- Also known as
- GHSA-wxw3-q3m9-c3jr
- Sources
- NVDJSONOSV GHSA-wxw3-q3m9-c3jrJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | MEDIUM 6.0 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | better-auth | < 1.6.2 | 1.6.2 |
References
- https://github.com/better-auth/better-auth/security/advisories/GHSA-wxw3-q3m9-c3jr · WEB
- https://www.vulncheck.com/advisories/better-auth-before-oauth-state-validation-bypass
- https://github.com/better-auth/better-auth/issues/8897 · WEB
- https://github.com/better-auth/better-auth/pull/8949 · WEB
- https://github.com/better-auth/better-auth/commit/9deb7936aba7931f2db4b460141f476508f11bfd · WEB
- https://github.com/better-auth/better-auth · PACKAGE
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 1 Aug 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 15 May 2026)