Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

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… (CVE-2025-71404)

0
Medium
Published: 08/01/2026 (08/01/2026, 15:30:23 UTC)
Source: GCVE Database

Description

better-auth versions after 0.0.2 and before 1.1.16 have a reflected cross-site scripting (XSS) vulnerability on the /api/auth/error page. The vulnerability arises because the 'error' URL parameter is reflected in the HTML response without proper neutralization, allowing an attacker to execute arbitrary JavaScript in the user's browser if the user visits a crafted URL. This issue is fixed in version 1.1.16.

CVSS v4.0

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
Low
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
Scope
X
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Affected software

GitHub Actionsmore threats →ai
better-auth/better-auth
pkg:github/better-auth/better-auth
Affected versions
>=0.0.3 <1.1.16

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/01/2026, 21:25:41 UTC

Technical Analysis

The vulnerability in better-auth affects versions after 0.0.2 and before 1.1.16. It is a reflected XSS on the /api/auth/error endpoint where the 'error' parameter is not properly sanitized before being reflected in the HTML response. This allows attackers to inject and execute arbitrary JavaScript in the context of the victim's browser. The vulnerability is addressed in version 1.1.16.

Potential Impact

An attacker can exploit this vulnerability by tricking a user into visiting a maliciously crafted URL, resulting in arbitrary JavaScript execution in the user's browser. This can lead to session hijacking, defacement, or other client-side attacks. No known exploits in the wild have been reported.

Mitigation Recommendations

Upgrade better-auth to version 1.1.16 or later, where this reflected XSS vulnerability is fixed. No other mitigation or temporary workaround is indicated.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-ch2q-47vm-cxgf
Osv Schema Version
1.4.0
Aliases
["CVE-2025-71404"]
Ecosystems
[]
Database Specific Severity
MODERATE
Cvss Version
4.0

Threat ID: 6a6e6299bf32cb7a344f9eee

Added to database: 08/01/2026, 21:18:17 UTC

Last enriched: 08/01/2026, 21:25:41 UTC

Last updated: 08/01/2026, 21:37:51 UTC

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses