Vulnerabilities/

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

Severity:
High

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:

References

Related Issues

Tags:
npm
pbkdf2
Anything's wrong? Let us know Last updated on June 23, 2025