CVE-2022-29244
npm packing does not respect root-level ignore files in workspaces
- Published
- Updated
- Reserved
- Assigned by
- GitHub_M
Description
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.
Timeline
ID reserved
By GitHub_M
- 2 months later
· 2 months later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVDNVD · Modified | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
- EPSS (exploitation in 30 days)
- 4.0% · top 9.4% of all CVEs (7 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Weakness
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
References (10)
- https://github.com/npm/cli/security/advisories/GHSA-hj9c-8jmm-8c52 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/npm/npm-packlist (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/npm/cli/tree/latest/workspaces/libnpmpublish (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/npm/cli/tree/latest/workspaces/libnpmpack (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/nodejs/node/pull/43210 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/npm/cli/releases/tag/v8.11.0 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/nodejs/node/releases/tag/v16.15.1 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/nodejs/node/releases/tag/v17.9.1 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/nodejs/node/releases/tag/v18.3.0 (opens in a new tab)x_refsource_MISCx_transferred
- https://security.netapp.com/advisory/ntap-20220722-0007/ (opens in a new tab)x_refsource_CONFIRMx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-hj9c-8jmm-8c52 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-29244)Record last updated .