CVE-2024-47829
JavaScript vulnerability analysis and mitigation

Overview

pnpm is a package manager that contains a vulnerability in versions prior to 10.0.0 where the path shortening function uses MD5 for compression. The vulnerability was discovered and disclosed on April 23, 2025, affecting all versions before 10.0.0. The issue involves the path shortening function using MD5 as a compression function, which can result in path collisions for different libraries (GitHub Advisory).

Technical details

The vulnerability stems from using MD5 in the depPathToFilename function for path shortening. When package names plus version numbers exceed 120 characters, the function creates shortened paths using MD5 hashing. If a collision occurs, two different libraries can end up with the same storage path. Although the real names are maintained under /node_modules/, there are no version numbers for referenced libraries. The vulnerability has been assigned a CVSS v3.1 score of 6.5 (Medium) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L and is classified as CWE-328 (Use of Weak Hash) (GitHub Advisory, NVD).

Impact

When a collision occurs, two different libraries will share the same storage path, leading to potential package version conflicts. In cases where packages reference another package C with different versions, the actual version used will depend on the installation order. This can result in packages using incorrect versions of dependencies without raising installation errors, potentially leading to the use of vulnerable versions (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 10.0.0 by upgrading the hash function from MD5 to SHA256. Users should upgrade to version 10.0.0 or later to address this security issue (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65959HIGH8.7
  • JavaScriptJavaScript
  • open-webui
NoYesDec 04, 2025
CVE-2025-66032HIGH8.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesDec 03, 2025
CVE-2025-65945HIGH7.5
  • JavaScriptJavaScript
  • jws
NoYesDec 04, 2025
CVE-2025-66404MEDIUM6.4
  • JavaScriptJavaScript
  • mcp-server-kubernetes
NoYesDec 03, 2025
CVE-2025-66479LOW1.8
  • JavaScriptJavaScript
  • @anthropic-ai/sandbox-runtime
NoYesDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management