{"id":"CVE-2025-71403","aliases":["CVE-2025-71403","GHSA-vp58-j275-797x"],"related":[],"kind":"vulnerability","state":"published","title":"better-auth before 1.1.20 Open Redirect via trustedOrigins Bypass","summary":"better-auth versions before 1.1.20 contain a bypass vulnerability in trustedOrigins validation logic affecting absolute URLs and wildcard domains. Attackers can construct malicious callbackURL parameters that pass origin checks and trigger open redirects to steal sensitive tokens for account takeover.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"better-auth versions before 1.1.20 contain a bypass vulnerability in trustedOrigins validation logic affecting absolute URLs and wildcard domains. Attackers can construct malicious callbackURL parameters that pass origin checks and trigger open redirects to steal sensitive tokens for account takeover.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nA bypass was discovered in the trustedOrigins validation logic—affecting both absolute URL entries and wildcard domain patterns. This flaw allows an attacker to construct a malicious callbackURL that passes origin checks and triggers an open redirect.\n\nBecause redirect endpoints include sensitive tokens (such as password-reset tokens), this vulnerability can enable one-click account takeover if a victim clicks a crafted link.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Las versiones de better-auth anteriores a la 1.1.20 contienen una vulnerabilidad de omisión en la lógica de validación de trustedOrigins que afecta a las URLs absolutas y a los dominios comodín. Los atacantes pueden construir parámetros callbackURL maliciosos que pasan las comprobaciones de origen y desencadenan redirecciones abiertas para robar tokens sensibles para la toma de control de cuentas.","source":"nvd"}],"published":"2025-02-24T20:49:50.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:P/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N","score":7.1,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N","score":7.1,"rating":"HIGH"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.1.20","status":"affected"},{"type":"semver","version":"1.1.20","status":"unaffected"}],"vendor":"better-auth","product":"better-auth","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.1.21"}],"ecosystem":"npm","package":"better-auth","purl":"pkg:npm/better-auth","source":"ghsa"}],"references":[{"url":"https://github.com/better-auth/better-auth/security/advisories/GHSA-vp58-j275-797x","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/better-auth-before-open-redirect-via-trustedorigins-bypass","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/better-auth/better-auth/commit/b381cac7aafd6aa53ef78b6ab771ebfa24643c80","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/ddebd0358d74376ea64541512d0167dd4377f182/packages/better-auth/src/api/middlewares/origin-check.ts#L53","tags":["web"],"sources":["ghsa"]}],"credits":["castilho101"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-03T18:18:37.173Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-71403","url":"https://www.cve.org/CVERecord?id=CVE-2025-71403","licence":"CVE Terms of Use","modified":"2026-08-03T18:18:54.122Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vp58-j275-797x","url":"https://github.com/advisories/GHSA-vp58-j275-797x","licence":"CC-BY-4.0","modified":"2026-08-02T03:56:47.282Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-71403","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71403","licence":"Public domain","modified":"2026-10-06T22:10:00.247Z"}],"updatedAt":"2026-11-25T22:59:12.423Z","epss":{"score":0.00238,"percentile":0.15931,"date":"2026-12-01T12:00:22.000Z"}}