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

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.00%, higher than 90% of CVEs (2026-12-01)
- Published: 2022-06-02T15:37:27.000Z
- Modified: 2026-06-17T04:39:54.333Z
- Also known as: GHSA-hj9c-8jmm-8c52
- Weaknesses: CWE-200
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- npm npm: from 7.9.0 before 7.9.0*; from 8.11.0 before 8.11.0
- npm (npm): from 7.9.0 before 8.11.0
- npmjs npm: from 7.9.0 before 8.11.0
- netapp ontap_select_deploy_administration_utility: no versions given

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://github.com/npm/cli/security/advisories/GHSA-hj9c-8jmm-8c52> (third-party-advisory, web)
- <https://github.com/npm/npm-packlist> (product, third-party-advisory, web)
- <https://github.com/npm/cli/tree/latest/workspaces/libnpmpublish> (product, third-party-advisory, web)
- <https://github.com/npm/cli/tree/latest/workspaces/libnpmpack> (product, third-party-advisory, web)
- <https://github.com/nodejs/node/pull/43210> (patch, third-party-advisory, web)
- <https://github.com/npm/cli/releases/tag/v8.11.0> (release-notes, third-party-advisory, web)
- <https://github.com/nodejs/node/releases/tag/v16.15.1> (release-notes, third-party-advisory, web)
- <https://github.com/nodejs/node/releases/tag/v17.9.1> (release-notes, third-party-advisory, web)
- <https://github.com/nodejs/node/releases/tag/v18.3.0> (release-notes, third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20220722-0007/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-29244> (advisory)
- <https://github.com/npm/cli> (web)
- <https://security.netapp.com/advisory/ntap-20220722-0007> (web)

## Sources

- CVE List: [CVE-2022-29244](https://www.cve.org/CVERecord?id=CVE-2022-29244), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-hj9c-8jmm-8c52](https://github.com/advisories/GHSA-hj9c-8jmm-8c52), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-29244](https://nvd.nist.gov/vuln/detail/CVE-2022-29244), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-29244 · Whole record: https://cve.day/CVE-2022-29244.json · Rebuilt by cve.day 2026-11-25T22:58:12.250Z
