{"id":"CVE-2025-71404","aliases":["CVE-2025-71404","GHSA-9x4v-xfq5-m8x5"],"related":[],"kind":"vulnerability","state":"published","title":"better-auth before 1.1.16 Reflected XSS via error parameter","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\nThe better-auth `/api/auth/error` page was vulnerable to HTML injection, resulting in a reflected cross-site scripting (XSS) vulnerability.\n\n### Details\nThe value of `error` URL parameter was reflected as HTML on the error page: https://github.com/better-auth/better-auth/blob/05ada0b79dbcac93cc04ceb79b23ca598d07830c/packages/better-auth/src/api/routes/error.ts#L81\n\n### Impact\nAn attacker who exploited this vulnerability by coercing a user to visit a specially-crafted URL could execute arbitrary JavaScript in the context of the user's browser.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Las versiones de better-auth posteriores a la v0.0.2 y anteriores a la 1.1.16 contienen una vulnerabilidad de cross-site scripting (XSS) reflejado en la página /API/auth/error, donde el valor del parámetro URL 'error' se refleja como HTML sin la neutralización adecuada. Un atacante que coacciona a un usuario para que visite una URL especialmente diseñada puede ejecutar JavaScript arbitrario en el contexto del navegador del usuario. El problema está solucionado en la versión 1.1.16.","source":"nvd"}],"published":"2025-02-05T21:49:39.000Z","modified":"2026-10-06T22:10:00.247Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":5.1,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":5.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.1.16","status":"affected"},{"type":"semver","version":"1.1.16","status":"unaffected"}],"vendor":"better-auth","product":"better-auth","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.0.2","status":"affected","fixed":"1.1.16"}],"ecosystem":"npm","package":"better-auth","purl":"pkg:npm/better-auth","source":"ghsa"}],"references":[{"url":"https://github.com/better-auth/better-auth/security/advisories/GHSA-9x4v-xfq5-m8x5","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/better-auth/better-auth/commit/05ada0b79dbcac93cc04ceb79b23ca598d07830c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/better-auth-before-reflected-xss-via-error-parameter","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/better-auth/better-auth/commit/7ae340e2eddad641b7e43d24d37c58a66ce9ddcf","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/better-auth/better-auth","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/better-auth/better-auth/blob/05ada0b79dbcac93cc04ceb79b23ca598d07830c/packages/better-auth/src/api/routes/error.ts#L81","tags":["web"],"sources":["ghsa"]}],"credits":["Eriner"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-08-03T15:00:29.984Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-71404","url":"https://www.cve.org/CVERecord?id=CVE-2025-71404","licence":"CVE Terms of Use","modified":"2026-08-03T15:38:00.141Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9x4v-xfq5-m8x5","url":"https://github.com/advisories/GHSA-9x4v-xfq5-m8x5","licence":"CC-BY-4.0","modified":"2026-08-02T03:56:48.551Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-71404","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71404","licence":"Public domain","modified":"2026-10-06T22:10:00.247Z"}],"updatedAt":"2026-11-25T22:59:12.424Z","epss":{"score":0.00719,"percentile":0.49719,"date":"2026-11-30T12:00:22.000Z"}}