Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

GHSA-4vcf-q4xf-f48m

Better Auth Passkey Plugin allows passkey deletion through IDOR
Back to all
CVE

GHSA-4vcf-q4xf-f48m

Better Auth Passkey Plugin allows passkey deletion through IDOR

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

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
-
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
C
H
U
7.1
-
3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L

Related Resources

No items found.

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

Severity

7.1

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
7.1
EPSS Probability
0%
EPSS Percentile
0%
Introduced Version
0,1.4.0-beta.16
Fix Available
1.4.0,1.4.0-beta.22

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading