CVE Catalog

CVE-2025-71404

MediumCVSS 5.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.40%

33th percentile - higher than 33% of all known CVEs

Summary

better-auth versions after v0.0.2 and before 1.1.16 contain a reflected XSS vulnerability on the /api/auth/error page, where the 'error' URL parameter is reflected as HTML without proper neutralization. An attacker can coerce a user into visiting a specially-crafted URL to execute arbitrary JavaScript in the user's browser.

Risk Assessment

An attacker can steal sessions, redirect users to malicious sites, or perform other actions on behalf of the victim.

Recommendation

Update better-auth to version 1.1.16 or later, which includes the fix.

Other vulnerabilities in better-auth

See all
Original NVD description (English source)

better-auth versions after v0.0.2 and before 1.1.16 contain a reflected cross-site scripting (XSS) vulnerability on the /api/auth/error page, where the value of the 'error' URL parameter is reflected as HTML without proper neutralization. An attacker who coerces a user into visiting a specially-crafted URL can execute arbitrary JavaScript in the context of the user's browser. The issue is fixed in version 1.1.16.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS