pbkdf2
PBKDF2 key derivation with any hash supported by the Node.js crypto API, with a JavaScript fallback for browsers.
In short
What to know.
- Algorithms
- PBKDF2None would be broken by a large quantum computer.
- Advisories
- 3 in the storeOSV last read 3 December 2026, 16:48 UTC.
- What to do
- Check your version against the advisories below. Each lists its affected and fixed versions.
3 in the store
Advisories
| Advisory | Id | Affected versions | Fixed in | Source's rating |
|---|---|---|---|---|
| pbkdf2 rehashes long passwords on every iteration, enabling denial of service | GHSA-477h-4r7f-fvrx | before 3.1.7 | Fixed in 3.1.7 | Rated Moderate |
| pbkdf2 silently disregards Uint8Array input, returning static keys | GHSA-v62p-rq8g-8h59 | from 1.0.0 before 3.1.3 | Fixed in 3.1.3 | Rated Critical |
| pbkdf2 returns predictable uninitialized/zero-filled memory for non-normalized or unimplemented algos | GHSA-h7cp-r72f-jxh6 | from 3.0.10 before 3.1.3 | Fixed in 3.1.3 | Rated Critical |
3 listed
Findings
| Finding | Id | Severity | Updated |
|---|---|---|---|
| pbkdf2 silently disregards Uint8Array input, returning static keys | NMN-2026-0054 | Severity Critical | 3 December 2026 |
| pbkdf2 returns predictable uninitialized/zero-filled memory for non-normalized or unimplemented algos | NMN-2026-0052 | Severity Critical | 3 December 2026 |
| pbkdf2 rehashes long passwords on every iteration, enabling denial of service | NMN-2026-0051 | Severity Moderate | 3 December 2026 |
Reviewed 3 December 2026
Sources
- npm registry metadata for pbkdf2registry.npmjs.orgRetrieved 3 December 2026
- pbkdf2 READMEgithub.comRetrieved 3 December 2026
Full record
- Package
- pbkdf2
- Ecosystem
- npm
- Role
- Implementation
- Repository
- github.com/browserify/pbkdf2
- Status
- Not marked deprecated by its registry or maintainers.
- Reviewed
- Entry reviewed 3 December 2026. Catalogue entry, curated by hand and incomplete by design.
- Advisories read
- Last read from OSV 3 December 2026, 16:48 UTC
- Findings
- 3 listed above.
Algorithms it provides
- PBKDF2 kdfSymmetricWeakened by Grover's search
What a large quantum computer would change
- Weakened by Grover's searchGrover's search would roughly halve its effective security. 256-bit keys and outputs stay adequate.PBKDF2
Notes describe algorithm families, not any one project.