CVE-2025-71404 PUBLISHED

better-auth before 1.1.16 Reflected XSS via error parameter

Assigner: VulnCheck
Reserved: 18.07.2026 Published: 01.08.2026 Updated: 01.08.2026

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.

Metrics

CVSS Vector: 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
CVSS Score: 5.1

Product Status

Vendor better-auth
Product better-auth
Versions Default: unaffected
  • affected from 0 to 1.1.16 (excl.)
  • Version 1.1.16 is unaffected

Credits

  • Eriner reporter

References

Problem Types

  • Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') CWE