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).

Exploitability

The vulnerability is exploitable in environments where the Node.js experimental permission model is in use. It specifically affects configurations where wildcards are used in file path specifications with the --allow-fs-read and --allow-fs-write flags. The vulnerability is present in Node.js versions 20.x through 20.11.1 and 21.x through 21.6.2 (NetApp Advisory).

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-2026-69192HIGH7.7
  • JavaScript logoJavaScript
  • nodejs24-docs
NoYesAug 03, 2026
CVE-2026-56848HIGH7.5
  • npm logonpm
  • nodejs-npm
NoYesAug 04, 2026
CVE-2026-56846HIGH7.5
  • npm logonpm
  • nodejs:22::v8-13.6-devel
NoYesAug 04, 2026
CVE-2026-69152HIGH7.5
  • JavaScript logoJavaScript
  • nodejs:24::nodejs
NoYesAug 03, 2026
CVE-2026-69198MEDIUM6.9
  • JavaScript logoJavaScript
  • nodejs-npm
NoYesAug 03, 2026

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