Origin Validation Error Affecting better-auth package, versions >=1.2.0-beta.18 <1.4.0


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.19% (10th 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 IDSNYK-JS-BETTERAUTH-23050774
  • published30 Nov 2026
  • disclosed21 Nov 2026
  • creditiabdullah215

Introduced: 21 Nov 2026

NewCVE-2026-134320  (opens in a new tab)
CWE-346  (opens in a new tab)

How to fix?

Upgrade better-auth to version 1.4.0 or higher.

Overview

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

Affected versions of this package are vulnerable to Origin Validation Error via the WebAuthn registration and authentication handlers, which take the expected origin from the incoming request rather than from server configuration, and do not confirm the user verification flag when userVerification is set to "required". An authenticated attacker can register or use a passkey without completing the required PIN or biometric check, and a passkey response created on a different origin that shares the same relying party ID may be accepted by the server.

Note: This is only exploitable when authenticatorSelection.userVerification is explicitly set to "required", or when the relying party ID covers origins not controlled by the application operator.

References

CVSS Base Scores

version 4.0
version 3.1