CVE-2025-71404 better-auth before 1.1.16 Reflected XSS via error parameter
MediumCVSS 5.1
EPSS 0.72%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm better-auth | < 1.1.16 | 1.1.16 | Fixed |
| npm better-auth(npm) | >= 0.0.2, < 1.1.16 | 1.1.16 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm better-auth | < 1.1.16 | 1.1.16 |
| npm better-auth(npm) | >= 0.0.2, < 1.1.16 | 1.1.16 |
References
- GitHub Security Advisory (GHSA-9x4v-xfq5-m8x5) vendor-advisory
- Patch Commit patch
- VulnCheck Advisory: better-auth before 1.1.16 Reflected XSS via error parameter third-party-advisory
- github.com
- github.com product
- github.com
- ENISA EUVD EUVD-2025-210583 third-party-advisory