
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2022-29244 affects npm package versions from 7.9.0 to versions before 8.11.0. The vulnerability involves npm pack ignoring root-level .gitignore and .npmignore file exclusion directives when run in a workspace or with a workspace flag (i.e., --workspaces, --workspace=<name>). The issue was discovered and disclosed in June 2022, affecting npm package management system and its integration with Node.js (GitHub Advisory).
The vulnerability occurs when using npm pack or npm publish commands inside a workspace environment. The issue specifically affects operations performed with workspace flags (--workspaces, --workspace=) where the root-level .gitignore and .npmignore file exclusion directives are not properly respected. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH) with a vector of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N (NVD).
The vulnerability could lead to the unintended disclosure of sensitive information. Users who have run npm pack or npm publish inside a workspace may have inadvertently published files into the npm registry that they did not intend to include, potentially exposing sensitive data or internal files that should have remained private (GitHub Advisory).
Users should upgrade to npm version 8.11.0 or later by running: npm i -g npm@latest. Node.js versions v16.15.1, v17.19.1, and v18.3.0 include the patched v8.11.0 version of npm. For affected packages, users should: 1) Create and publish a new release excluding the unintended files, 2) Deprecate the old package, and 3) Revoke or rotate any sensitive information that might have been exposed (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."