Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. pbkdf2
  4. ›
  5. CVE-2025-6547

CVE-2025-6547: pbkdf2 silently disregards Uint8Array input, returning static keys

June 23, 2025

On historic but declared as supported Node.js versions (0.12-2.x), pbkdf2 silently disregards Uint8Array input

This only affects Node.js <3.0.0, but pbkdf2 claims to:

  • Support Node.js >= 0.12 (and there seems to be ongoing effort in this repo to maintain that)
  • Support Uint8Array input (input is typechecked against Uint8Array, and the error message includes e.g. “Password must be a string, a Buffer, a typed array or a DataView”

References

  • github.com/advisories/GHSA-v62p-rq8g-8h59
  • github.com/browserify/pbkdf2
  • github.com/browserify/pbkdf2/commit/e3102a8cd4830a3ac85cd0dd011cc002fdde33bb
  • github.com/browserify/pbkdf2/security/advisories/GHSA-v62p-rq8g-8h59
  • nvd.nist.gov/vuln/detail/CVE-2025-6547

Code Behaviors & Features

Detect and mitigate CVE-2025-6547 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.1.3

Fixed versions

  • 3.1.3

Solution

Upgrade to version 3.1.3 or above.

Weakness

  • CWE-20: Improper Input Validation

Source file

npm/pbkdf2/CVE-2025-6547.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:19:52 +0000.