ADVISORIES

Red Hat VEX

RHVEX-CVE-2022-29244

nodejs: npm pack ignores root-level .gitignore and .npmignore file exclusion directives when run in a workspace

Moderate No fix available CVE-2022-29244

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

EcosystemPackageAffected versions
Red Hat:enterprise_linux:8nodejs
All versions, no fix yet
Red Hat:enterprise_linux:8nodejs-devel
All versions, no fix yet
Red Hat:enterprise_linux:8nodejs-docs
All versions, no fix yet
Red Hat:enterprise_linux:8nodejs-full-i18n
All versions, no fix yet
Red Hat:enterprise_linux:8nodejs-libs
All versions, no fix yet
Red Hat:enterprise_linux:8nodejs-nodemon
All versions, no fix yet
Red Hat:enterprise_linux:8nodejs-packaging
All versions, no fix yet
Red Hat:enterprise_linux:8nodejs-packaging-bundler
All versions, no fix yet
Red Hat:enterprise_linux:8npm
All versions, no fix yet
Red Hat:enterprise_linux:8v8-12.4-devel
All versions, no fix yet
Red Hat:enterprise_linux:8v8-13.6-devel
All versions, no fix yet

References