CVE-2022-29244
published 2022-06-13CVE-2022-29244: npm pack ignores root-level .gitignore and .npmignore file exclusion directives when run in a workspace or with a workspace flag (ie. `--workspaces`…
PriorityP346high7.5CVSS 3.1
AVNACLPRNUINSUCHINAN
EPSS
3.46%
87.8th percentile
npm pack ignores root-level .gitignore and .npmignore file exclusion directives when run in a workspace or with a workspace flag (ie. `--workspaces`, `--workspace=`). 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.
Affected
6 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| msrc | azl3_python-tensorboard_2.16.2-6_on_azure_linux_3.0 | — | — |
| msrc | cbl2_python-tensorboard_2.11.0-3_on_cbl_mariner_2.0 | — | — |
| npm | npm | >= 7.9.0 < 7.9.0* | 7.9.0* |
| npm | npm | >= 8.11.0 < 8.11.0 | 8.11.0 |
| npmjs | npm | >= 7.9.0 < 8.11.0 | 8.11.0 |
| npmjs | npm | >= 7.9.0 < 8.11.0 | 8.11.0 |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:P/I:N/A:N
ghsa7.5HIGH
osv7.5HIGH
vendor_msrc7.5HIGH
vendor_redhat7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
CVE-2022-29244: npm pack ignores root-level
osv·2022-06-13·CVSS 7.5
CVE-2022-29244 [HIGH] CVE-2022-29244: npm pack ignores root-level
npm pack ignores root-level .gitignore and .npmignore file exclusion directives when run in a workspace or with a workspace flag (ie. `--workspaces`, `--workspace=`). 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.
OSV
Packing does not respect root-level ignore files in workspaces
osv·2022-06-02·CVSS 7.5
CVE-2022-29244 [HIGH] Packing does not respect root-level ignore files in workspaces
Packing does not respect root-level ignore files in workspaces
### Impact
`npm pack` ignores root-level `.gitignore` & `.npmignore` file exclusion directives when run in a workspace or with a workspace flag (ie. `--workspaces`, `--workspace=`). Anyone who has run `npm pack` or `npm publish` with workspaces, as of [v7.9.0](https://github.com/npm/cli/releases/tag/v7.9.0) & [v7.13.0](https://github.com/npm/cli/releases/tag/v7.13.0) respectively, may be affected and have published files into the npm registry they did not intend to include.
### Patch
- Upgrade to the latest, patched version of `npm` ([`v8.11.0`](https://github.com/npm/cli/releases/tag/v8.11.0) or greater), run: `npm i -g npm@latest`
- Node.js versions [`v16.15.1`](https://github.com/nodejs/node/releases/tag/v16.15.1), [`v17.1
GHSA
Packing does not respect root-level ignore files in workspaces
ghsa·2022-06-02·CVSS 7.5
CVE-2022-29244 [HIGH] CWE-200 Packing does not respect root-level ignore files in workspaces
Packing does not respect root-level ignore files in workspaces
### Impact
`npm pack` ignores root-level `.gitignore` & `.npmignore` file exclusion directives when run in a workspace or with a workspace flag (ie. `--workspaces`, `--workspace=`). Anyone who has run `npm pack` or `npm publish` with workspaces, as of [v7.9.0](https://github.com/npm/cli/releases/tag/v7.9.0) & [v7.13.0](https://github.com/npm/cli/releases/tag/v7.13.0) respectively, may be affected and have published files into the npm registry they did not intend to include.
### Patch
- Upgrade to the latest, patched version of `npm` ([`v8.11.0`](https://github.com/npm/cli/releases/tag/v8.11.0) or greater), run: `npm i -g npm@latest`
- Node.js versions [`v16.15.1`](https://github.com/nodejs/node/releases/tag/v16.15.1), [`v17.1
Microsoft
npm packing does not respect root-level ignore files in workspaces
vendor_msrc·2022-06-14·CVSS 7.5
CVE-2022-29244 [HIGH] CWE-200 npm packing does not respect root-level ignore files in workspaces
npm packing does not respect root-level ignore files in workspaces
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
GitHub_M: GitHub_M
Customer Action Required: Yes
Red Hat
nodejs: npm pack ignores root-level .gitignore and .npmignore file exclusion directives when run in a workspace
vendor_redhat·2022-06-13·CVSS 7.5
CVE-2022-29244 [HIGH] CWE-212 nodejs: npm pack ignores root-level .gitignore and .npmignore file exclusion directives when run in a workspace
nodejs: npm pack ignores root-level .gitignore and .npmignore file exclusion directives when run in a workspace
npm pack ignores root-level .gitignore and .npmignore file exclusion directives when run in a workspace or with a workspace flag (ie. `--workspaces`, `--workspace=`). 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.
A flaw was found in npm. This security issue occurs because the npm pack ignores root-level ".gitignore" and ".npmignore" file exc
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/nodejs/node/pull/43210https://github.com/nodejs/node/releases/tag/v16.15.1https://github.com/nodejs/node/releases/tag/v17.9.1https://github.com/nodejs/node/releases/tag/v18.3.0https://github.com/npm/cli/releases/tag/v8.11.0https://github.com/npm/cli/security/advisories/GHSA-hj9c-8jmm-8c52https://github.com/npm/cli/tree/latest/workspaces/libnpmpackhttps://github.com/npm/cli/tree/latest/workspaces/libnpmpublishhttps://github.com/npm/npm-packlisthttps://security.netapp.com/advisory/ntap-20220722-0007/https://github.com/nodejs/node/pull/43210https://github.com/nodejs/node/releases/tag/v16.15.1https://github.com/nodejs/node/releases/tag/v17.9.1https://github.com/nodejs/node/releases/tag/v18.3.0https://github.com/npm/cli/releases/tag/v8.11.0https://github.com/npm/cli/security/advisories/GHSA-hj9c-8jmm-8c52https://github.com/npm/cli/tree/latest/workspaces/libnpmpackhttps://github.com/npm/cli/tree/latest/workspaces/libnpmpublishhttps://github.com/npm/npm-packlisthttps://security.netapp.com/advisory/ntap-20220722-0007/
2022-06-13
Published