# CVE-2021-26543: Command injection in git-parse

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.52%, higher than 85% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-05-06T12:28:10.000Z
- Modified: 2026-06-17T03:43:27.640Z
- Also known as: GHSA-m744-2jj8-vpfv
- Weaknesses: CWE-74, CWE-78
- Assigned by: mitre

## 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. The issue has been resolved in version 1.0.5.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- git-parse (npm): before 1.0.5
- wayfair git-parse: before 1.0.5

## Every score

- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://advisory.checkmarx.net/advisory/CX-2020-4302> (exploit, third-party-advisory, web)
- <https://www.npmjs.com/package/git-parse> (product, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-26543> (advisory)
- <https://github.com/wayfair/git-parse> (package)

## Sources

- CVE List: [CVE-2021-26543](https://www.cve.org/CVERecord?id=CVE-2021-26543), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-m744-2jj8-vpfv](https://github.com/advisories/GHSA-m744-2jj8-vpfv), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-26543](https://nvd.nist.gov/vuln/detail/CVE-2021-26543), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-26543 · Whole record: https://cve.day/CVE-2021-26543.json · Rebuilt by cve.day 2026-11-25T22:58:01.173Z
