Intel

AIKIDO-2026-32209

better-auth is vulnerable to Improper Input Validation

Improper Input Validation Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 3 days ago

59

Medium Risk

This Affects:

JSbetter-auth
1.6.17 - 1.6.18
Fixed in 1.6.19
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and have enabled the experimental oauthPopup plugin.

Background info

better-auth is vulnerable to Improper Input Validation in versions 1.6.17 - 1.6.18.

How to fix this

Upgrade the better-auth library to the patch version.