Skip to content

Command injection in git-parse

High severity GitHub Reviewed Published Feb 10, 2022 to the GitHub Advisory Database • Updated Jan 27, 2023

Package

npm git-parse (npm)

Affected versions

< 1.0.5

Patched versions

1.0.5

Description

The "gitDiff" function in Wayfair git-parse <=1.0.4 has a command injection vulnerability. Clients of the git-parse library are unlikely to be aware of this, so they might unwittingly write code that contains a vulnerability.

References

Published by the National Vulnerability Database May 6, 2021
Reviewed May 19, 2021
Published to the GitHub Advisory Database Feb 10, 2022
Last updated Jan 27, 2023

Severity

High
8.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2021-26543

GHSA ID

GHSA-m744-2jj8-vpfv

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.