AlexRogalskiy / code-formats

🔣 Styled Code Formats API
https://styled-code-formats.vercel.app
GNU General Public License v3.0
5 stars 1 forks source link

WS-2021-0245 (Critical) detected in git-2.0.6.tgz #1016

Open mend-bolt-for-github[bot] opened 4 months ago

mend-bolt-for-github[bot] commented 4 months ago

WS-2021-0245 - Critical Severity Vulnerability

Vulnerable Library - git-2.0.6.tgz

a util for spawning git from npm CLI contexts

Library home page: https://registry.npmjs.org/@npmcli/git/-/git-2.0.6.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/npm/node_modules/@npmcli/git/package.json

Dependency Hierarchy: - npm-7.1.0.tgz (Root Library) - npm-7.8.0.tgz - libnpmversion-1.1.0.tgz - :x: **git-2.0.6.tgz** (Vulnerable Library)

Found in base branch: master

Vulnerability Details

A Command Injection vulnerability was found in @npmcli/git before 2.0.8. It may result in arbitrary shell command execution due to improper argument sanitization when "npmcli/git" is used to execute Git commands based on user-controlled input. The impact of this issue is possible Arbitrary Command Injection when npmcli/git is run with untrusted (user-controlled) Git command arguments.

Publish Date: 2021-08-05

URL: WS-2021-0245

CVSS 3 Score Details (9.8)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: High - Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://github.com/advisories/GHSA-hxwm-x553-x359

Release Date: 2021-08-05

Fix Resolution (@npmcli/git): 2.0.8

Direct dependency fix Resolution (@semantic-release/npm): 7.1.1


Step up your Open Source Security Game with Mend here

github-actions[bot] commented 4 months ago

👋 Thanks for reporting!