Vulnerability library
Security checkJune 23, 2025

pbkdf2 returns predictable uninitialized/zero-filled memory for non-normalized or unimplemented algos

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmpbkdf2

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

This affects both:

  1. Unsupported algos (e.g. sha3-256 / sha3-512 / sha512-256)
  2. Supported but non-normalized algos (e.g. Sha256 / Sha512 / SHA1 / sha-1 / sha-256 / sha-512)

All of those work correctly in Node.js, but this polyfill silently returns highly predictable ouput

Under Node.

Recommendation

Update the pbkdf2 package to the latest compatible version. Followings are version details:

  • Affected version(s): >= 3.0.10, <= 3.1.2
  • Patched version(s): 3.1.3

References

Could your website be exposed too?

SmartScanner can check your website for pbkdf2 returns predictable uninitialized/zero-filled memory for non-normalized or unimplemented algos and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated June 23, 2025