CVE-2026-102414pbkdf2 rehashes long passwords on every iteration, enabling denial of service
pbkdf2 through 3.1.6 re-hashes passwords longer than the digest's block size on every iteration in its JavaScript fallback (lib/sync.js). A password longer than the block size (64 bytes, or 128 bytes for sha384 and sha512) is passed to HMAC as the key on every iteration, and HMAC hashes such keys in full each time. Cost is therefore O(iterations × password length), and a long password can block the event loop. The fallback is used by pbkdf2Sync and pbkdf2 on Node.js before 0.12, on Bun (1.0.0 through 1.1.34, and 1.2.6 and later), and on Deno 2.9.0 and later, because their native pbkdf2Sync fails the library's feature check. It is also used when lib/sync.js is imported directly. Node.js 0.12 and later, and browser builds (which use lib/sync-browser.js), are not affected. Applications that enforce a reasonable maximum password length are not meaningfully affected.
What to do
Fixed builds are available from Debian, npm: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | node-pbkdf2 | Fix pending | UBUNTU-CVE-2026-102414 | |
| Ubuntu 26.04 | node-pbkdf2 | Under investigation | UBUNTU-CVE-2026-102414 | |
| Ubuntu 24.04 | node-pbkdf2 | Fix pending | UBUNTU-CVE-2026-102414 | |
| Ubuntu 22.04 | node-pbkdf2 | Fix pending | UBUNTU-CVE-2026-102414 | |
| Ubuntu 20.04 | node-pbkdf2 | Fix pending | UBUNTU-CVE-2026-102414 | |
| Ubuntu 18.04 | node-pbkdf2 | Fix pending | UBUNTU-CVE-2026-102414 | |
| Debian 14 | node-pbkdf2 | Fixed | 3.1.7+~3.1.2-1 | DEBIAN-CVE-2026-102414 |
| Debian 13 | node-pbkdf2 | Fix pending | DEBIAN-CVE-2026-102414 | |
| Debian 12 | node-pbkdf2 | Fix pending | DEBIAN-CVE-2026-102414 | |
| npm library | pbkdf2 | Fixed | 3.1.7 | GHSA-477h-4r7f-fvrx |
What the vendor says
As published in the CVE record by harborist, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- browserify pbkdf2: affected: up to 3.1.6
Solution: Upgrade to a version of pbkdf2 that includes the fix, which pre-hashes passwords longer than the digest block size once before iterating, or, enforce literally any reasonable maximum password length before calling pbkdf2.
Workaround: Enforce a maximum password length (for example, 1024 bytes) before calling pbkdf2, or call the runtime's native crypto.pbkdf2Sync directly.
Vendor advisories:
- https://github.com/browserify/pbkdf2/security/advisories/GHSA-477h-4r7f-fvrx (vendor-advisory)
- https://github.com/browserify/pbkdf2/commit/493d8d8 (patch)
References
- https://github.com/browserify/pbkdf2/security/advisories/GHSA-477h-4r7f-fvrx
- https://github.com/browserify/pbkdf2/issues/82
- https://github.com/browserify/pbkdf2/commit/493d8d8
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.