better-auth is vulnerable to Improper Input Validation
59
CVE Score
Medium
Improper Input Validation
The experimental oauthPopup plugin merges caller-supplied additionalData into OAuth state without stripping reserved internal keys such as callbackURL and codeVerifier. An attacker who can influence the popup start request can inject those fields and tamper with the OAuth flow. Before the fix, reserved keys from additionalData were accepted into server-side OAuth state. The fix filters INTERNAL_STATE_KEYS so only custom application data is stored.
Upgrade the better-auth library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and have enabled the experimental oauthPopup plugin.
1.6.17 - 1.6.18
Fixed in 1.6.19better-auth is vulnerable to Improper Input Validation in versions 1.6.17 - 1.6.18.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.