GHSA-4vcf-q4xf-f48m

Suggest an improvement
Source
https://github.com/advisories/GHSA-4vcf-q4xf-f48m
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/11/GHSA-4vcf-q4xf-f48m/GHSA-4vcf-q4xf-f48m.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-4vcf-q4xf-f48m
Aliases
Published
2025-11-25T21:42:53Z
Modified
2026-08-03T03:56:46Z
Severity
  • 7.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L CVSS Calculator
Summary
Better Auth Passkey Plugin allows passkey deletion through IDOR
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-284",
        "CWE-639"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2025-11-25T21:42:53Z",
    "nvd_published_at":  null,
    "severity":  "HIGH"
}
References

Affected packages

npm / @better-auth/passkey

Package

Name
@better-auth/passkey
View open source insights on deps.dev
Purl
pkg:npm/%40better-auth/passkey

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.4.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/11/GHSA-4vcf-q4xf-f48m/GHSA-4vcf-q4xf-f48m.json"