Patch Commitpatch
https://github.com/better-auth/better-auth/commit/05ada0b79dbcac93cc04ceb79b23ca598d07830c CVE-2025-71404
MEDIUM
better-auth before 1.1.16 Reflected XSS via error parameter
Record summary
CVE-2025-71404 has a selected CVSS score of 5.1 (medium).
Description
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.
Description source: CVE List
Exploitation context
CISA SSVC decision
ExploitationNone
AutomatableYes
Technical impactPartial
CISA Coordinator · SSVC 2.0.3 · Evaluated Aug 3, 2026 · Source: CVE List
Affected products and versions
1| Product | Source | Version range | Status |
|---|---|---|---|
better-authBrowse better-auth / better-authDefault status: unaffected | CVE List | Before 1.1.16 | affected |
| 1.1.16 | unaffected |
References
4GitHub Security Advisory (GHSA-9x4v-xfq5-m8x5)Vendor advisory
https://github.com/better-auth/better-auth/security/advisories/GHSA-9x4v-xfq5-m8x5 nvd.nist.gov
https://nvd.nist.gov/vuln/detail/CVE-2025-71404 VulnCheck Advisory: better-auth before 1.1.16 Reflected XSS via error parameterThird-party advisory
https://www.vulncheck.com/advisories/better-auth-before-reflected-xss-via-error-parameter