Red Hat VEX
RHVEX-CVE-2022-29244
nodejs: npm pack ignores root-level .gitignore and .npmignore file exclusion directives when run in a workspace
Details
A flaw was found in npm. This security issue occurs because the npm pack ignores root-level ".gitignore" and ".npmignore" file exclusion directives when run in a workspace or with a workspace flag (for example, --workspaces, --workspace=<name>). Anyone who has run 'npm pack' or 'npm publish' inside a workspace has published files into the npm registry they did not intend to include. This flaw exposes sensitive information to an unauthorized user or an attacker.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:8 | nodejs | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | nodejs-devel | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | nodejs-docs | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | nodejs-full-i18n | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | nodejs-libs | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | nodejs-nodemon | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | nodejs-packaging | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | nodejs-packaging-bundler | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | npm | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | v8-12.4-devel | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | v8-13.6-devel | All versions, no fix yet |