GHSA-4vcf-q4xf-f48m
Summary
Affected versions of the better-auth passkey plugin allow users with any valid session to delete arbitrary passkeys via their ID using POST /passkey/delete-passkey.
Details
ctx.body.id is implicitly trusted and used in passkey deletion queries.
better-auth applications configured with useNumberId may use auto incrementing IDs which makes it trivial to delete all passkeys via enumeration.
Package Versions Affected
Automatically patch vulnerabilities without upgrading
CVSS Version



Related Resources
References
https://github.com/better-auth/better-auth/security/advisories/GHSA-4vcf-q4xf-f48m, https://github.com/better-auth/better-auth/commit/06d68239e, https://github.com/better-auth/better-auth
