Skip to main content
← All vulnerabilities
CVE-2025-71404GHSA-9X4V-XFQ5-M8X5

better-auth before 1.1.16 Reflected XSS via error parameter

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.1.16
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • better-auth better-auth

    fixed in 1.1.16

  • better-authnpm

    From 0.0.2 · fixed in 1.1.16

References 3

GitHub · better-auth/better-auth

vulncheck.com