CVE Explorer
CVE-2025-71404
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"defaultStatus":"unaffected","packageURL":"pkg:npm/better-auth","product":"better-auth","vendor":"better-auth","versions":[{"lessThan":"1.1.16","status":"affected","version":"0","versionType":"semver"},{"status":"unaffected","version":"1.1.16","versionType":"semver"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:e248eb6901b2f3962182eae50afce413e81d82e74fcc07295b80ad25c7a32e4d · sha256:fe851abf5f744409… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":5.1,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"ACTIVE","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"LOW"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:e248eb6901b2f3962182eae50afce413e81d82e74fcc07295b80ad25c7a32e4d · sha256:fe851abf5f744409… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-79","description":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:e248eb6901b2f3962182eae50afce413e81d82e74fcc07295b80ad25c7a32e4d · sha256:fe851abf5f744409… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"name":"Patch Commit","tags":["patch"],"url":"https://github.com/better-auth/better-auth/commit/05ada0b79dbcac93cc04ceb79b23ca598d07830c"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:e248eb6901b2f3962182eae50afce413e81d82e74fcc07295b80ad25c7a32e4d · sha256:fe851abf5f744409… · /containers/cna/references/1
{"name":"GitHub Security Advisory (GHSA-9x4v-xfq5-m8x5)","tags":["vendor-advisory"],"url":"https://github.com/better-auth/better-auth/security/advisories/GHSA-9x4v-xfq5-m8x5"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:e248eb6901b2f3962182eae50afce413e81d82e74fcc07295b80ad25c7a32e4d · sha256:fe851abf5f744409… · /containers/cna/references/0
{"name":"VulnCheck Advisory: better-auth before 1.1.16 Reflected XSS via error parameter","tags":["third-party-advisory"],"url":"https://www.vulncheck.com/advisories/better-auth-before-reflected-xss-via-error-parameter"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:e248eb6901b2f3962182eae50afce413e81d82e74fcc07295b80ad25c7a32e4d · sha256:fe851abf5f744409… · /containers/cna/references/2
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.