npm pack ignores root-level .gitignore & .npmignore file exclusion directives when run in a workspace or with a workspace flag (ie. --workspaces, --workspace=). Anyone who has run npm pack or npm publish with workspaces, as of v7.9.0 & 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 patched version of npm (v8.11.0 or greater).
:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.
CVE-2022-29244 - Medium Severity Vulnerability
Vulnerable Library - npm-8.5.0.tgz
a package manager for JavaScript
Library home page: https://registry.npmjs.org/npm/-/npm-8.5.0.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/npm/package.json
Dependency Hierarchy: - semantic-release-19.0.2.tgz (Root Library) - npm-9.0.0.tgz - :x: **npm-8.5.0.tgz** (Vulnerable Library)
Found in HEAD commit: 339c233f38fb804a26d33861aeb9011ccea53d79
Found in base branch: main
Vulnerability Details
npm pack ignores root-level .gitignore & .npmignore file exclusion directives when run in a workspace or with a workspace flag (ie. --workspaces, --workspace=). Anyone who has run npm pack or npm publish with workspaces, as of v7.9.0 & 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 patched version of npm (v8.11.0 or greater).
Publish Date: 2022-04-14
URL: CVE-2022-29244
CVSS 3 Score Details (5.7)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: Low - User Interaction: Required - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: None - Availability Impact: None
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Origin: https://github.com/advisories/GHSA-hj9c-8jmm-8c52
Release Date: 2022-04-14
Fix Resolution: npm - 8.11.0
Step up your Open Source Security Game with Mend here