@better-auth/passkey is vulnerable to Origin Validation Error
31
CVE Score
Low
Origin Validation Error
The Better Auth passkey plugin accepts the request origin instead of checking it against a configured WebAuthn origin, and does not enforce required user verification. This can allow passkey responses from unintended origins under the same relying party ID, or passkey use without the required PIN or biometric check. Registration still requires signing in to the account.
Upgrade @better-auth/passkey to the patch version. Set the origin option when rpID is set and covered by a wildcard in baseURL.allowedHosts.
You are affected if you use @better-auth/passkey within the vulnerable range and either set authenticatorSelection.userVerification to "required", or your relying party ID covers origins you do not control, such as sibling subdomains. The default "preferred" setting allows responses without user verification by design.
1.4.0 - 1.7.15
Fixed in 1.7.16@better-auth/passkey is vulnerable to Origin Validation Error in versions 1.4.0 - 1.7.15.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.