CVE-2022-29244: Packing does not respect root-level ignore files in workspaces
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.76588%
CWE
Published
6/2/2022
Updated
1/27/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| npm | npm | >= 7.9.0, < 8.11.0 | 8.11.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper handling of root-level ignore files in workspace contexts. npm-packlist is directly responsible for file inclusion logic, and its failure to apply root ignore rules in workspaces is a core issue. Libnpmpack's role in passing workspace/prefix context to npm-packlist (as indicated in the fix commit 'pass prefix and workspaces to libnpmpack') confirms its involvement. The patch in npm v8.11.0 addressed both components, aligning with the described vulnerability impact.