Use of Weak Hash Affecting pnpm package, versions <10.0.0-alpha.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.02% (4th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use of Weak Hash vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-PNPM-9802153
  • published24 Apr 2025
  • disclosed23 Apr 2025
  • creditkexinoh

Introduced: 23 Apr 2025

NewCVE-2024-47829  (opens in a new tab)
CWE-328  (opens in a new tab)

How to fix?

Upgrade pnpm to version 10.0.0-alpha.0 or higher.

Overview

pnpm is a Fast, disk space efficient package manager

Affected versions of this package are vulnerable to Use of Weak Hash for path shortening. An attacker can cause collisions in file paths, leading to the overwriting of indirect package dependencies by manipulating package names and versions to generate the same hash value.

Note:

This is only exploitable if the package names and versions are specifically crafted to exceed 120 characters and share the same hash output.

References

CVSS Base Scores

version 4.0
version 3.1