CVEfocus › CVE database › CVE-2022-29244

CVE-2022-29244npm packing does not respect root-level ignore files in workspaces

CVSS 7.5 HighEPSS 3.7% (higher than 91% of CVEs)Published 2022-06-13Updated 2025-04-23Assigner: GitHub_M

npm pack ignores root-level .gitignore and .npmignore file exclusion directives when run in a workspace or with a workspace flag (ie. `--workspaces`, `--workspace=<name>`). Anyone who has run `npm pack` or `npm publish` inside a workspace, as of v7.9.0 and v7.13.0 respectively, may be affected and have published files into the npm registry they did not intend to include. Users should upgrade to the latest, patched version of npm v8.11.0, run: 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.

CWE-200

What to do

Fixed builds are available from AlmaLinux, Red Hat, Rocky Linux, npm: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

14Fixed
4Fix pending
3Under investigation
2Will not fix
11Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10npmFix pendingUBUNTU-CVE-2022-29244
Ubuntu 26.04npmUnder investigationUBUNTU-CVE-2022-29244
Ubuntu 25.10npmWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-29244
Ubuntu 24.04npmUnder investigationUBUNTU-CVE-2022-29244
Ubuntu 22.04npmUnder investigationUBUNTU-CVE-2022-29244
Ubuntu 20.04npmWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-29244
Ubuntu 18.04npmFix pendingUBUNTU-CVE-2022-29244
Ubuntu 16.04npmFix pendingUBUNTU-CVE-2022-29244
Ubuntu 14.04npmFix pendingUBUNTU-CVE-2022-29244
Red Hat Enterprise Linux 9nodejsFixed1:16.16.0-1.el9_0RHSA-2022:6595
Red Hat Enterprise Linux 9nodejs-docsFixed1:16.16.0-1.el9_0RHSA-2022:6595
Red Hat Enterprise Linux 9nodejs-full-i18nFixed1:16.16.0-1.el9_0RHSA-2022:6595
Red Hat Enterprise Linux 9nodejs-libsFixed1:16.16.0-1.el9_0RHSA-2022:6595
Red Hat Enterprise Linux 9nodejs-nodemonFixed0:2.0.19-1.el9_0RHSA-2022:6595
Red Hat Enterprise Linux 9npmFixed1:8.11.0-1.16.16.0.1.el9_0RHSA-2022:6595
Red Hat Enterprise Linux 8nodejsNot affected
Red Hat Enterprise Linux 8nodejs-develNot affected
Red Hat Enterprise Linux 8nodejs-docsNot affected
Red Hat Enterprise Linux 8nodejs-full-i18nNot affected
Red Hat Enterprise Linux 8nodejs-libsNot affected
Red Hat Enterprise Linux 8nodejs-nodemonNot affected
Red Hat Enterprise Linux 8nodejs-packagingNot affected
Red Hat Enterprise Linux 8nodejs-packaging-bundlerNot affected
Red Hat Enterprise Linux 8npmNot affected
Red Hat Enterprise Linux 8v8-12.4-develNot affected
Red Hat Enterprise Linux 8v8-13.6-develNot affected
AlmaLinux 9nodejsFixed1:16.16.0-1.el9_0ALSA-2022:6595
AlmaLinux 9nodejs-docsFixed1:16.16.0-1.el9_0ALSA-2022:6595
AlmaLinux 9nodejs-full-i18nFixed1:16.16.0-1.el9_0ALSA-2022:6595
AlmaLinux 9nodejs-libsFixed1:16.16.0-1.el9_0ALSA-2022:6595
AlmaLinux 9nodejs-nodemonFixed2.0.19-1.el9_0ALSA-2022:6595
AlmaLinux 9npmFixed1:8.11.0-1.16.16.0.1.el9_0ALSA-2022:6595
Rocky Linux 9nodejs-nodemonFixed0:2.0.19-1.el9_0RLSA-2022:6595
npm librarynpmFixed8.11.0GHSA-hj9c-8jmm-8c52

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.