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=<name>`). Anyone who has run `npm pack` or `npm publish` inside a workspace, as of v7.9.0 and v7.13.0 respectiv
Published
2022-06-13T13:40:27.000Z
Last modified
2025-04-23T16:23:31.058Z
01What is this vulnerability?
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…
02Affected products
| Vendor | Product | Versions |
|---|
| npm | npm | 7.9.0, 8.11.0 |
03Active exploitation status
Not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog. EPSS is the best forward-looking signal — see the EPSS row above.
04Recommended remediation
- Patch to a fixed version listed in the vendor advisory (see references below).
- Mitigate with WAF rules, network egress filters, or feature flags where the patch is not yet available.
- Hunt historical logs for exploitation indicators — see Detection signatures below.
05Technical details
For the full vendor write-up, exploit chains, and reference implementations, see the references list in section 09.
06Detection signatures
Ask SARA in chat to draft a starting detection for this CVE in your stack of choice.
07Related CVEs
No directly-cited follow-up CVEs in the KB record for this advisory. The references list in section 09 carries the vendor cross-references.
08Timeline
- Published: 2022-06-13T13:40:27.000Z
- Last modified: 2025-04-23T16:23:31.058Z
09References
- github.com — https://github.com/npm/cli/security/advisories/GHSA-hj9c-8jmm-8c52
- github.com — https://github.com/npm/npm-packlist
- github.com — https://github.com/npm/cli/tree/latest/workspaces/libnpmpublish
- github.com — https://github.com/npm/cli/tree/latest/workspaces/libnpmpack
- github.com — https://github.com/nodejs/node/pull/43210
- github.com — https://github.com/npm/cli/releases/tag/v8.11.0
- github.com — https://github.com/nodejs/node/releases/tag/v16.15.1
- github.com — https://github.com/nodejs/node/releases/tag/v17.9.1
- github.com — https://github.com/nodejs/node/releases/tag/v18.3.0
- security.netapp.com — https://security.netapp.com/advisory/ntap-20220722-0007/
Want this in your SOAR or SIEM?
SARA's API returns EPSS, CVSS, KEV, and an analyst-grade summary in one call.
Read the API reference →