CVE-2025-71404
better-auth versions after v0.0.2 and before 1.1.16 contain a …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/better-auth/better-auth/commit/05ada0b79dbcac93cc04ceb79b23ca598d07830c
- github.com/better-auth/better-auth/security/advisories/GHSA-9x4v-xfq5-m8x5
- www.vulncheck.com/advisories/better-auth-before-reflected-xss-via-error-parameter
- nvd.nist.gov/vuln/detail/CVE-2025-71404
- cve.org/CVERecord?id=CVE-2025-71404
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.