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

Read the record on cve.org

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

CVSSScoreVectorSource
4.06.0 MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NVulnCheck
3.15.3 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:NVulnCheck

Weaknesses

Affected Products

ProductVersions
better-authbetter-auth
  • before 1.6.2Affected
  • 1.6.2Not affected

References

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.