CVE-2025-27143
Last modified
CVE-2025-27143 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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. EPSS estimates a 0.32% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Better-Auth | Better Auth | < 1.1.21 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-27143?
How severe is CVE-2025-27143?
How do I fix CVE-2025-27143?
How Strix Helps
- One Click Account Takeover in GranolaHow a notification link broke out of Electron and led to a one-click account takeover.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-27138DataEase is an open source business intelligence and data vi…9.8
- CVE-2025-27139Combodo iTop is a web based IT service management tool. Vers…5.4
- CVE-2025-2714A vulnerability was found in JoomlaUX JUX Real Estate 3.4.0.…5.3
- CVE-2025-27140WeGIA is a Web manager for charitable institutions. An OS Co…9.8
- CVE-2025-27141Metabase Enterprise Edition is the enterprise version of Met…6.5
- CVE-2025-27142LocalSend is a free, open-source app that allows users to se…8.8
- CVE-2025-27144Go JOSE provides an implementation of the Javascript Object …6.6
- CVE-2025-27145copyparty, a portable file server, has a DOM-based cross-sit…6.1
- CVE-2025-27146matrix-appservice-irc is a Node.js IRC bridge for Matrix. Th…4.3
- CVE-2025-27147The GLPI Inventory Plugin handles various types of tasks for…8.2
- CVE-2025-27148Gradle is a build automation tool, and its native-platform t…8.8
- CVE-2025-27149Zulip server provides an open-source team chat that helps te…2.7
Are you affected by CVE-2025-27143?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
