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.test.osv.dev/v1/vulns/GHSA-4vcf-q4xf-f48m
Published
2025-11-25T21:42:53Z
Modified
2025-11-25T22:05:58.705299Z
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
{
    "nvd_published_at": null,
    "github_reviewed_at": "2025-11-25T21:42:53Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-284",
        "CWE-639"
    ]
}
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
0Unknown introduced version / All previous versions are affected
Fixed
1.4.0