Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. better-auth
  4. ›
  5. CVE-2025-53535

CVE-2025-53535: Better Auth Open Redirect Vulnerability in originCheck Middleware Affects Multiple Routes

July 7, 2025

An open redirect has been found in the originCheck middleware function, which affects the following routes: /verify-email, /reset-password/:token, /delete-user/callback, /magic-link/verify, /oauth-proxy-callback.

References

  • github.com/advisories/GHSA-36rg-gfq2-3h56
  • github.com/better-auth/better-auth
  • github.com/better-auth/better-auth/commit/9801d1be53d9da04686b94c6286c53ec97496740
  • github.com/better-auth/better-auth/security/advisories/GHSA-36rg-gfq2-3h56
  • nvd.nist.gov/vuln/detail/CVE-2025-53535

Code Behaviors & Features

Detect and mitigate CVE-2025-53535 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.2.10

Fixed versions

  • 1.2.10

Solution

Upgrade to version 1.2.10 or above.

Weakness

  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

npm/better-auth/CVE-2025-53535.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:19:36 +0000.