# CVE-2025-71404: better-auth before 1.1.16 Reflected XSS via error parameter

- Severity: Medium 5.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.72%, higher than 50% of CVEs (2026-11-30)
- Published: 2025-02-05T21:49:39.000Z
- Modified: 2026-10-06T22:10:00.247Z
- Also known as: GHSA-9x4v-xfq5-m8x5
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- better-auth better-auth: before 1.1.16 (not affected: 1.1.16)
- better-auth (npm): from 0.0.2 before 1.1.16

## Every score

- VulnCheck: CVSS:4.0 5.1 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/better-auth/better-auth/security/advisories/GHSA-9x4v-xfq5-m8x5> (vendor-advisory, web)
- <https://github.com/better-auth/better-auth/commit/05ada0b79dbcac93cc04ceb79b23ca598d07830c> (patch)
- <https://www.vulncheck.com/advisories/better-auth-before-reflected-xss-via-error-parameter> (third-party-advisory)
- <https://github.com/better-auth/better-auth/commit/7ae340e2eddad641b7e43d24d37c58a66ce9ddcf> (web)
- <https://github.com/better-auth/better-auth> (package)
- <https://github.com/better-auth/better-auth/blob/05ada0b79dbcac93cc04ceb79b23ca598d07830c/packages/better-auth/src/api/routes/error.ts#L81> (web)

## Sources

- CVE List: [CVE-2025-71404](https://www.cve.org/CVERecord?id=CVE-2025-71404), CVE Terms of Use, modified 2026-08-03
- GitHub Advisory Database: [GHSA-9x4v-xfq5-m8x5](https://github.com/advisories/GHSA-9x4v-xfq5-m8x5), CC-BY-4.0, modified 2026-08-02
- NVD: [CVE-2025-71404](https://nvd.nist.gov/vuln/detail/CVE-2025-71404), Public domain, modified 2026-10-06

---

Page: https://cve.day/CVE-2025-71404 · Whole record: https://cve.day/CVE-2025-71404.json · Rebuilt by cve.day 2026-11-25T22:59:12.424Z
