GHSA-4vcf-q4xf-f48m: @better auth/passkey Better Auth Passkey Plugin Allows Vulnerability
HIGHGHSA-4vcf-q4xf-f48m is a HIGH (CVSS 7.1) better auth passkey plugin allows vulnerability (CWE-284: Improper Access Control) affecting @better auth/passkey libraries in the npm ecosystem. The issue involves better auth passkey plugin allows passkey deletion through idor. Remediation is available by upgrading affected packages to version 1.4.0.
GHSA-4vcf-q4xf-f48m at a Glance
Security Impact
CVSS: 7.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L).
How to Fix GHSA-4vcf-q4xf-f48m
To remediate this vulnerability, upgrade all affected @better auth/passkey dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @better-auth/passkey@1.4.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @better-auth/passkey
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-4vcf-q4xf-f48m, inspect your project dependencies using npm:
npm ls @better-auth/passkey
Analyze the terminal output to locate any version of @better auth/passkey in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.0), your application is affected.
Note: The npm ls @better-auth/passkey command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In @better auth/passkey, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-4vcf-q4xf-f48m Affected @better auth/passkey Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@better-auth/passkey
|
npm |
< 1.4.0
|
1.4.0
|
References
Frequently Asked Questions
What is GHSA-4vcf-q4xf-f48m?
Which @better auth/passkey versions are affected?
What version fixes GHSA-4vcf-q4xf-f48m?
Is @better-auth/passkey affected?
What is the CVSS score of GHSA-4vcf-q4xf-f48m?
What CWE is associated with GHSA-4vcf-q4xf-f48m?
How can I check npm dependencies for GHSA-4vcf-q4xf-f48m?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4vcf-q4xf-f48m",
"modified" : "2025-11-25T21:42:53Z",
"published" : "2025-11-25T21:42:53Z",
"aliases" : [ ],
"summary" : "Better Auth Passkey Plugin allows passkey deletion through IDOR",
"details" : "# Summary\n\nAffected 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`.\n\n# Details\n\n`ctx.body.id` is implicitly trusted and used in passkey deletion queries.\n\nbetter-auth applications configured with `useNumberId` may use auto incrementing IDs which makes it trivial to delete all passkeys via enumeration.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@better-auth/passkey"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.4.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/better-auth/better-auth/security/advisories/GHSA-4vcf-q4xf-f48m"
}, {
"type" : "WEB",
"url" : "https://github.com/better-auth/better-auth/commit/06d68239e"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/better-auth/better-auth"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284", "CWE-639" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-11-25T21:42:53Z",
"nvd_published_at" : null
}
}