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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 3.72% (percentile 91, 2026-11-26)
- **CWE:** CWE-200
- **Aliases:** GHSA-hj9c-8jmm-8c52
- **Published:** 2022-06-02T15:37:27.000Z
- **Modified:** 2026-06-17T04:39:54.333Z

## Who should check

- Projects that depend on npm package npm (\>= 7.9.0, \< 8.11.0)
- Anyone running npm \>= 7.9.0, \< 7.9.0\*; \>= 8.11.0, \< 8.11.0

## 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.

## Affected and fixed versions

- npm `npm`: affected \>= 7.9.0, \< 8.11.0; fixed 8.11.0 (osv)
- npm: \>= 7.9.0, \< 7.9.0\*; \>= 8.11.0, \< 8.11.0 (cvelist)

## Mitigation

- Upgrade npm to 8.11.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-29244. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-29244.md
Affected: npm >= 7.9.0, < 8.11.0
Fixed in: 8.11.0

Steps:
1. Search this machine and project for npm (npm), npm: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-29244 being exploited?

There is no confirmed exploitation: CVE-2022-29244 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 3.72% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-29244?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2022-29244?

npm \>= 7.9.0, \< 8.11.0.

### Is there a fix for CVE-2022-29244?

Yes. Fixed in 8.11.0. Upgrade npm to 8.11.0 or later.

### How do I check if I'm affected by CVE-2022-29244?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-29244>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-hj9c-8jmm-8c52> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2022-29244> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-29244>
