{"id":"CVE-2022-29244","url":"https://www.cyber-defence.io/tools/cve/CVE-2022-29244","generatedAt":"2026-10-27T19:57:04.285Z","title":"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>`).","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.","published":"2022-06-13T14:15:09.000Z","lastModified":"2026-06-17T04:39:54.000Z","status":"Modified","sourceIdentifier":"security-advisories@github.com","cvss":{"version":"3.1","score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},"cwe":["CWE-200"],"affected":["npmjs/npm","netapp/ontap select deploy administration utility"],"epss":{"score":0.04004,"percentile":0.9047,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"high","text":"High impact if exploited, but EPSS currently rates exploitation as unlikely (4.00%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit."},"changes":[],"references":[{"url":"https://github.com/nodejs/node/pull/43210","tags":["Patch","Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://github.com/nodejs/node/releases/tag/v16.15.1","tags":["Release Notes","Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://github.com/nodejs/node/releases/tag/v17.9.1","tags":["Release Notes","Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://github.com/nodejs/node/releases/tag/v18.3.0","tags":["Release Notes","Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://github.com/npm/cli/releases/tag/v8.11.0","tags":["Release Notes","Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://github.com/npm/cli/security/advisories/GHSA-hj9c-8jmm-8c52","tags":["Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://github.com/npm/cli/tree/latest/workspaces/libnpmpack","tags":["Product","Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://github.com/npm/cli/tree/latest/workspaces/libnpmpublish","tags":["Product","Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://github.com/npm/npm-packlist","tags":["Product","Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://security.netapp.com/advisory/ntap-20220722-0007/","tags":["Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://github.com/nodejs/node/pull/43210","tags":["Patch","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/nodejs/node/releases/tag/v16.15.1","tags":["Release Notes","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/nodejs/node/releases/tag/v17.9.1","tags":["Release Notes","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/nodejs/node/releases/tag/v18.3.0","tags":["Release Notes","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/npm/cli/releases/tag/v8.11.0","tags":["Release Notes","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/npm/cli/security/advisories/GHSA-hj9c-8jmm-8c52","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/npm/cli/tree/latest/workspaces/libnpmpack","tags":["Product","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/npm/cli/tree/latest/workspaces/libnpmpublish","tags":["Product","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/npm/npm-packlist","tags":["Product","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.netapp.com/advisory/ntap-20220722-0007/","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-29244","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}