CVE-2022-29244

npm packing does not respect root-level ignore files in workspaces

HIGH
7.5
CVSS Score
Published: June 13, 2022 at 01:40 PM UTC
Updated: June 17, 2026 at 04:39 AM UTC
3 products affected across 3 vendorsONTAP Select Deploy administration utilityNpmNpm

Using npm by npm?

Get instant alerts when new vulnerabilities affect npm - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 4%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

7.9.0 ≤ v < 8.11.0
Affected range stops below 8.11.0, so it looks safe — our inference, not a vendor statement
v < 8.11.07.9.0 ≤ v < 7.9.0*7.9.0
Affected range stops below 7.9.0*, so it looks safe — our inference, not a vendor statement
Affected range stops below 8.11.0, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

Patch and advisory references

References (10)

x_refsource_MISCPatchThird Party Advisory
https://github.com/nodejs/node/pull/43210
x_refsource_MISCRelease NotesThird Party Advisory
https://github.com/nodejs/node/releases/tag/v16.15.1
x_refsource_MISCRelease NotesThird Party Advisory
https://github.com/nodejs/node/releases/tag/v17.9.1
x_refsource_MISCRelease NotesThird Party Advisory
https://github.com/nodejs/node/releases/tag/v18.3.0
x_refsource_MISCRelease NotesThird Party Advisory
https://github.com/npm/cli/releases/tag/v8.11.0

SSVC — Action Prioritization

SSVCNo known exploitAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.5HIGHCISA-ADP
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-200NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card