Snyk vulnerability [SNYK-JS-PBKDF2-20251013]
Author: github-actions[bot]Created Sep 29, 2026Updated Sep 29, 2026
Labelssnyk-vulnerabilityhelp wanted
Affecting Packages/Plugins
- example-app
- example-app-legacy
- @backstage/cli
- @backstage/cli-defaults
- @backstage/cli-module-build
- techdocs-cli-embedded-app
Overview
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the pbkdf2 function in lib/sync.js, which passes the raw password to createHmac on every PBKDF2 iteration. Because HMAC rehashes any key longer than the digest's block size (per RFC 2104), a long password causes O(iterations × password_length) hash operations instead of O(iterations), allowing an attacker to trigger disproportionate CPU consumption by supplying a long password.
Note: This is only exploitable via the pure-JS synchronous path used on Node.js < 0.12, Bun, Deno, or through direct imports of pbkdf2/lib/sync.
Remediation
Upgrade pbkdf2 to version 3.1.7 or higher.
References
Source: backstage/backstage