Open Redirect Affecting better-auth package, versions <1.1.20


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.09% (24th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Open Redirect vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-BETTERAUTH-8746067
  • published25 Feb 2025
  • disclosed24 Feb 2025
  • creditSumeet, Shivaraj

Introduced: 24 Feb 2025

CVE-2025-27143  (opens in a new tab)
CWE-601  (opens in a new tab)

How to fix?

Upgrade better-auth to version 1.1.20 or higher.

Overview

better-auth is a The most comprehensive authentication library for TypeScript.

Affected versions of this package are vulnerable to Open Redirect due to improper validation of the `callbackURL parameter in the email verification endpoint and other endpoints that accept a callback URL.

References

CVSS Base Scores

version 4.0
version 3.1