CVE-2022-29244
JavaScript vulnerability analysis and mitigation

Overview

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

Technical details

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

Impact

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

Mitigation and workarounds

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

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-66456CRITICAL9.1
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-66457HIGH7.5
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-65849MEDIUM6.9
  • JavaScriptJavaScript
  • altcha
NoNoDec 08, 2025
CVE-2025-66202MEDIUM6.5
  • JavaScriptJavaScript
  • astro
NoYesDec 09, 2025
CVE-2025-14284MEDIUM5.1
  • JavaScriptJavaScript
  • @tiptap/extension-link
NoYesDec 09, 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