Intel

AIKIDO-2026-11110

@better-auth/passkey is vulnerable to Incorrect Authorization

Incorrect Authorization Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 3 days ago

71

High Risk

This Affects:

JS@better-auth/passkey
1.6.0 - 1.6.11
Fixed in 1.6.12
Are you affected? Scan for Free

TL;DR

The passkey plugin verifies WebAuthn registration and authentication using a stored challenge row. Before the fix, two concurrent verify requests sharing the same signed challenge cookie could both consume the challenge and succeed, allowing replayed passkey verification to register credentials or mint sessions. The fix atomically consumes challenge rows through consumeVerificationValue so only the first caller succeeds.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

@better-auth/passkey is vulnerable to Incorrect Authorization in versions 1.6.0 - 1.6.11.

How to fix this

Upgrade the @better-auth/passkey library to the patch version.