{"id":"GHSA-9x4v-xfq5-m8x5","revision":"655630d933884569a13598bea4536188","records":[{"revision":"655630d933884569a13598bea4536188","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-9x4v-xfq5-m8x5","aliases":["CVE-2025-71404"],"title":"Better Auth URL parameter HTML Injection (Reflected Cross-Site scripting)","description":"### 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.","state":0,"publishedAt":"2025-02-05T21:49:39+00:00","modifiedAt":"2026-08-02T03:56:48.551422+00:00","affected":[{"ecosystem":"npm","name":"better-auth","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.2"},{"kind":"fixed","version":"1.1.16"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","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":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/better-auth/better-auth/security/advisories/GHSA-9x4v-xfq5-m8x5","https://github.com/better-auth/better-auth/commit/7ae340e2eddad641b7e43d24d37c58a66ce9ddcf","https://github.com/better-auth/better-auth","https://github.com/better-auth/better-auth/blob/05ada0b79dbcac93cc04ceb79b23ca598d07830c/packages/better-auth/src/api/routes/error.ts#L81"],"sourceUrl":"https://github.com/advisories/GHSA-9x4v-xfq5-m8x5","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-9x4v-xfq5-m8x5","identifiers":["GHSA-9x4v-xfq5-m8x5","CVE-2025-71404"]},"retained":false,"historicalAffected":[]}],"coverage":[]}