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… (CVE-2025-71404)
better-auth versions after 0.0.2 and before 1.1.16 have a reflected cross-site scripting (XSS) vulnerability on the /api/auth/error page. The vulnerability arises because the 'error' URL parameter is reflected in the HTML response without proper neutralization, allowing an attacker to execute arbitrary JavaScript in the user's browser if the user visits a crafted URL. This issue is fixed in version 1.1.16.
AI Analysis
Technical Summary
The vulnerability in better-auth affects versions after 0.0.2 and before 1.1.16. It is a reflected XSS on the /api/auth/error endpoint where the 'error' parameter is not properly sanitized before being reflected in the HTML response. This allows attackers to inject and execute arbitrary JavaScript in the context of the victim's browser. The vulnerability is addressed in version 1.1.16.
Potential Impact
An attacker can exploit this vulnerability by tricking a user into visiting a maliciously crafted URL, resulting in arbitrary JavaScript execution in the user's browser. This can lead to session hijacking, defacement, or other client-side attacks. No known exploits in the wild have been reported.
Mitigation Recommendations
Upgrade better-auth to version 1.1.16 or later, where this reflected XSS vulnerability is fixed. No other mitigation or temporary workaround is indicated.
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… (CVE-2025-71404)
Description
better-auth versions after 0.0.2 and before 1.1.16 have a reflected cross-site scripting (XSS) vulnerability on the /api/auth/error page. The vulnerability arises because the 'error' URL parameter is reflected in the HTML response without proper neutralization, allowing an attacker to execute arbitrary JavaScript in the user's browser if the user visits a crafted URL. This issue is fixed in version 1.1.16.
CVSS v4.0
Affected software
pkg:github/better-auth/better-authRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in better-auth affects versions after 0.0.2 and before 1.1.16. It is a reflected XSS on the /api/auth/error endpoint where the 'error' parameter is not properly sanitized before being reflected in the HTML response. This allows attackers to inject and execute arbitrary JavaScript in the context of the victim's browser. The vulnerability is addressed in version 1.1.16.
Potential Impact
An attacker can exploit this vulnerability by tricking a user into visiting a maliciously crafted URL, resulting in arbitrary JavaScript execution in the user's browser. This can lead to session hijacking, defacement, or other client-side attacks. No known exploits in the wild have been reported.
Mitigation Recommendations
Upgrade better-auth to version 1.1.16 or later, where this reflected XSS vulnerability is fixed. No other mitigation or temporary workaround is indicated.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-ch2q-47vm-cxgf
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-71404"]
- Ecosystems
- []
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6a6e6299bf32cb7a344f9eee
Added to database: 08/01/2026, 21:18:17 UTC
Last enriched: 08/01/2026, 21:25:41 UTC
Last updated: 08/01/2026, 21:37:51 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.