CVE-2026-67335 Details
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.
A vulnerability exists in better-auth versions prior to 1.6.2, where the OAuth state parameter is not properly validated against the stored nonce when using cookie-based state storage without Proof Key for Code Exchange (PKCE). This flaw allows attackers to forge the state parameter and introduce an authorization code of their choice, creating authenticated sessions linked to the attacker's external identity or permanently associating attacker accounts with victim profiles.
Users can upgrade to better-auth version 1.6.2 or later. If an immediate upgrade is not possible, the state storage strategy can be switched back to 'database', which is the default, or PKCE can be enabled on affected OAuth providers.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 1, 2026CISA-ADP
Assessed Aug 3, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/better-auth/better-auth/security/advisories/GHSA-wxw3-q3m9-c3jr | [email protected] | AdvisoryRemedyVendor |
| https://www.vulncheck.com/advisories/better-auth-before-oauth-state-validation-bypass | [email protected] | AdvisoryVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-287 | Improper Authentication | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| better-auth | < 1.6.2 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 3, 2026 | CVE Modified | CISA-ADP |
| Aug 1, 2026 | New CVE Received | [email protected] |
Volerion