better-auth is vulnerable to Improper Input Validation
59
Medium Risk
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.
You are affected if you are using a version that falls within the vulnerable range and have enabled the experimental oauthPopup plugin.
better-auth is vulnerable to Improper Input Validation in versions 1.6.17 - 1.6.18.
Upgrade the better-auth library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant