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

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.

Published: 2022-06-13 Last update: 2025-04-23 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2022-29244 is rated Moderate Risk (56/100): CVSS High severity, with medium exploitation likelihood (EPSS 0.85%). Mandatory action: Review affected assets and schedule remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2022-29244

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-04-19 1.07% 0.85% -0.22%
2 2026-03-04 0.64% 1.07% +0.43%
3 2026-03-01 0.64%

Full EPSS history (55 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2022-29244

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
7.5 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 3.6 [email protected]
7.5 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 3.6 134c704f-9b21-4f2e-91b3-4a467353bcc0
5.0 2.0 MEDIUM
AV:N/AC:L/Au:N/C:P/I:N/A:N Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:L)
Exploitation conditions are straightforward and predictable.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:N)
No integrity impact.
Availability impact (A:N)
No availability impact.
10.0 2.9 [email protected]

Weakness enumeration for CVE-2022-29244

GitHub Security Advisory for CVE-2022-29244

GHSA-hj9c-8jmm-8c52 · Severity: high · Ecosystem: npm — Packing does not respect root-level ignore files in workspaces

OS Trackers for CVE-2022-29244

vendor priority summary link
alpine CVE-2022-29244: 1 source package rows (npm); 3 state rows across 3 repos (3.22-community, edge-community, edge-main); fixed 0, open 3. https://security.alpinelinux.org/vuln/CVE-2022-29244
redhat medium https://access.redhat.com/security/cve/CVE-2022-29244
suse medium CVE-2022-29244 severity moderate: SUSE including 50 source package names (16-7.1:nodejs16-16.17.0-150400.3.6.1, 16-7.1:npm16-16.17.0-150400.3.6.1, …), 237 product×package rows across 34 product lines (Container bci/nodejs, SUSE CaaS Platform 4.0, … (34 product lines)): Known Not Affected 184, Fixed 53. https://www.suse.com/security/cve/CVE-2022-29244/
ubuntu medium CVE-2022-29244 medium priority: Ubuntu including 1 source packages (npm), 14 status rows across 14 suites (bionic, focal, impish, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): needs-triage 8, ignored 6. https://ubuntu.com/security/CVE-2022-29244

Affected software / configurations for CVE-2022-29244

Vendor Product Version Raw CPE
npmjs npm >= 7.9.0, < 8.11.0 cpe:2.3:a:npmjs:npm:*:*:*:*:*:*:*:*
netapp ontap_select_deploy_administration_utility cpe:2.3:a:netapp:ontap_select_deploy_administration_utility:-:*:*:*:*:*:*:*

References for CVE-2022-29244

URL Tags
https://github.com/nodejs/node/pull/43210 Patch Third Party Advisory
https://github.com/nodejs/node/releases/tag/v16.15.1 Release Notes Third Party Advisory
https://github.com/nodejs/node/releases/tag/v17.9.1 Release Notes Third Party Advisory
https://github.com/nodejs/node/releases/tag/v18.3.0 Release Notes Third Party Advisory
https://github.com/npm/cli/releases/tag/v8.11.0 Release Notes Third Party Advisory
https://github.com/npm/cli/security/advisories/GHSA-hj9c-8jmm-8c52 Third Party Advisory
https://github.com/npm/cli/tree/latest/workspaces/libnpmpack Product Third Party Advisory
https://github.com/npm/cli/tree/latest/workspaces/libnpmpublish Product Third Party Advisory
https://github.com/npm/npm-packlist Product Third Party Advisory
https://security.netapp.com/advisory/ntap-20220722-0007/ Third Party Advisory
cvelogic Threat Intelligence