{"id":"CVE-2025-71404","aliases":["GHSA-9x4v-xfq5-m8x5"],"url":"https://o3.security/vulnerability/CVE-2025-71404","summary":"better-auth before 1.1.16 Reflected XSS via error parameter","details":"### 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.","published":"2026-08-01T12:22:17.885Z","modified":"2026-10-28T02:30:49.064522401Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"better-auth","fixedVersion":"1.1.16"}],"fix":{"url":"https://github.com/better-auth/better-auth/commit/05ada0b79dbcac93cc04ceb79b23ca598d07830c","label":"better-auth/better-auth@05ada0b"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71404.json"},{"type":"ADVISORY","url":"https://github.com/better-auth/better-auth/security/advisories/GHSA-9x4v-xfq5-m8x5"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71404"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/better-auth-before-reflected-xss-via-error-parameter"},{"type":"FIX","url":"https://github.com/better-auth/better-auth/commit/05ada0b79dbcac93cc04ceb79b23ca598d07830c"},{"type":"WEB","url":"https://github.com/better-auth/better-auth/commit/7ae340e2eddad641b7e43d24d37c58a66ce9ddcf"},{"type":"PACKAGE","url":"https://github.com/better-auth/better-auth"},{"type":"WEB","url":"https://github.com/better-auth/better-auth/blob/05ada0b79dbcac93cc04ceb79b23ca598d07830c/packages/better-auth/src/api/routes/error.ts#L81"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:30:49.064522401Z"}}