CVE-2025-27143
MEDIUMDescription
Better Auth is an authentication and authorization library for TypeScript. Prior to version 1.1.21, the application is vulnerable to an open redirect due to improper validation of the callbackURL parameter in the email verification endpoint and any other endpoint that accepts callback url. While the server blocks fully qualified URLs, it incorrectly allows scheme-less URLs. This results in the browser interpreting the URL as a fully qualified URL, leading to unintended redirection. An attacker can exploit this flaw by crafting a malicious verification link and tricking users into clicking it. Upon successful email verification, the user will be automatically redirected to the attacker's website, which can be used for phishing, malware distribution, or stealing sensitive authentication tokens. This CVE is a bypass of the fix for GHSA-8jhw-6pjj-8723/CVE-2024-56734. Version 1.1.21 contains an updated patch.
How to fix
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Exploit Intelligence
Low risk: more likely to be exploited than 24% of all known CVEs.
References
Related Vulnerabilities
Other CWE-601 (Open Redirect) vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2025-4123 | High | 7.6 | 98% | - | Fix |
| CVE-2018-11784 | Medium | 4.3 | 94% | - | Fix |
| CVE-2021-22881 | Medium | 6.1 | 87% | - | Fix |
| CVE-2022-45402 | Medium | 6.1 | 82% | - | Fix |
| CVE-2017-1000117 | High | 8.8 | 78% | - | Fix |
| CVE-2019-10098 | Medium | 6.1 | 74% | - | Fix |
Embed a live status badge for CVE-2025-27143
Markdown
[](https://tridentstack.com/cve/CVE-2025-27143)HTML
<a href="https://tridentstack.com/cve/CVE-2025-27143"><img src="https://tridentstack.com/cve/badge/CVE-2025-27143.svg" alt="CVE-2025-27143"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
Start freeThis product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-02-28.