CVE-2022-29244: high-severity vulnerability in npm
npm packing does not respect root-level ignore files in workspaces
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
No sign of exploitation. No public exploitation artifact known so far.
When using npm pack or publish in a workspace, npm ignores root-level .gitignore and .npmignore files, potentially including sensitive or unintended files in published packages. This could expose private files or credentials to the public npm registry.
CWE-200 information exposure vulnerability affecting npm v7.9.0+ and v7.13.0+ in workspace mode. The pack/publish commands fail to respect root-level ignore directives (.gitignore, .npmignore) when workspace flags are used, bypassing intended file exclusions. Attackers or compromised workflows could exploit this to publish sensitive files to npm registry.