CVE-2024-21891
npm vulnerability analysis and mitigation

Overview

Node.js versions prior to 20.11.1 and 21.6.2 contain a vulnerability in the experimental permission model where built-in utility functions used to normalize paths provided to node:fs functions can be overwritten with user-defined implementations. This vulnerability was discovered in early 2024 and affects all users using the experimental permission model in Node.js 20 and Node.js 21 release lines (NVD, OSS Security).

Technical details

The vulnerability stems from the way Node.js handles path normalization in its permission model. The built-in utility functions that normalize paths provided to node:fs functions can be overwritten, leading to filesystem permission model bypass through path traversal attacks. The vulnerability has been assigned a CVSS v3.1 base score of 8.8 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

Successful exploitation of this vulnerability could lead to filesystem permission model bypass, potentially resulting in unauthorized access to files outside the permitted directories. The impact includes possible disclosure of sensitive information, addition or modification of data, or Denial of Service (DoS) (NetApp Advisory).

Mitigation and workarounds

The vulnerability has been patched in Node.js versions 20.11.1 and 21.6.2. Users running affected versions should upgrade to these patched versions or later. Since this vulnerability specifically affects the experimental permission model, users who are not using this feature are not impacted (Red Hat Advisory).

Additional resources


SourceThis report was generated using AI

Related npm vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-64756HIGH7.5
  • JavaScriptJavaScript
  • ubi8::php-74
NoYesNov 17, 2025
CVE-2025-7458MEDIUM6.9
  • SQLiteSQLite
  • firefox-x11
NoYesJul 29, 2025
CVE-2025-64118MEDIUM6.1
  • JavaScriptJavaScript
  • kibana-9.1
NoYesOct 30, 2025
CVE-2025-62408MEDIUM5.9
  • npmnpm
  • seal-c-ares
NoYesDec 08, 2025
CVE-2025-52099N/AN/A
  • SQLiteSQLite
  • seal-sqlite
NoYesOct 24, 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