CVE-2024-21890
npm vulnerability analysis and mitigation

Overview

The Node.js Permission Model vulnerability (CVE-2024-21890) affects Node.js versions 20.x and 21.x. The vulnerability stems from improper documentation regarding wildcard usage in file paths, where wildcards should only be used as the last character. For example, using --allow-fs-read=/home/node/.ssh/*.pub will incorrectly ignore 'pub' and grant access to everything after '.ssh/'. This vulnerability affects all users utilizing the experimental permission model in Node.js 20 and Node.js 21 (NodeJS Blog, NVD).

Technical details

The vulnerability has been assigned a CVSS v3.1 base score of 6.5 (MEDIUM) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N. The issue lies in the permission model's handling of wildcards in file path specifications, particularly when used with the --allow-fs-read and --allow-fs-write flags. The vulnerability exists in the experimental permission model feature, which incorrectly processes wildcard characters when they appear in file paths (NVD).

Impact

The vulnerability can lead to unintended access permissions, potentially allowing access to files and directories beyond the intended scope. When wildcards are used in file paths, the system may grant broader access than intended, potentially exposing sensitive information or allowing unauthorized file system access (OSS Security).

Mitigation and workarounds

The issue has been addressed in Node.js versions 20.11.1 and 21.6.2. Users should upgrade to these or later versions to resolve the vulnerability. When using the permission model, ensure that wildcards are only used as the last character in file paths (NodeJS Blog).

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::python-311
NoYesNov 17, 2025
CVE-2025-7458MEDIUM6.9
  • SQLiteSQLite
  • rust-toolset:rhel8::rust-std-static-wasm32-unknown-unknown
NoYesJul 29, 2025
CVE-2025-64118MEDIUM6.1
  • JavaScriptJavaScript
  • nodejs:20::nodejs-full-i18n
NoYesOct 30, 2025
CVE-2025-62408MEDIUM5.9
  • npmnpm
  • nodejs22-libs-debuginfo
NoYesDec 08, 2025
CVE-2025-52099N/AN/A
  • SQLiteSQLite
  • rust-toolset:rhel8::rust-analyzer
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