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
Affects better-authSource GCVE Database
Not known to be exploited · CVSS 5.1 Medium : upgrade to 1.1.16 when convenient.
Data as of 30 Oct 2026, 20:25 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 44% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.1.16
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XExploitation evidence
Disclosed: evidence found.
CVE published 1 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Upgrade better-auth/better-auth to 1.1.16.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubbetter-auth/better-authpkg:github/better-auth/better-authOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
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.
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.
References
- github.com/better-auth/better-auth/security/advisories/GHSA-9x4v-xfq5-m8x5 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2025-71404 (opens in a new tab)
- github.com/better-auth/better-auth/commit/05ada0b79dbcac93cc04ceb79b23ca598d07830c (opens in a new tab)
- vulncheck.com/advisories/better-auth-before-reflected-xss-via-error-parameter (opens in a new tab)