CVE-2021-26541
Command injection in gitlog
The gitlog function in src/index.ts in gitlog before 4.0.4 has a command injection vulnerability.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used 9.8
The gitlog function in src/index.ts in gitlog before 4.0.4 has a command injection vulnerability.
- Record
CVE-2021-26541- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-78
- Updated
- 2026-11-02
CVE ListNo score
The gitlog function in src/index.ts in gitlog before 4.0.4 has a command injection vulnerability.
- Record
CVE-2021-26541- Updated
- 2026-11-02
EUVDEUVD-2021-0771No score
The gitlog function in src/index.ts in gitlog before 4.0.4 has a command injection vulnerability.
- Record
EUVD-2021-0771- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-67mm-m3wx-j7fr 9.8
Command injection in gitlog
The gitlog function in src/index.ts in gitlog before 4.0.4 has a command injection vulnerability.
- Record
GHSA-67mm-m3wx-j7fr- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-77
- Updated
- 2026-11-02
OSV 9.8
The gitlog function in src/index.ts in gitlog before 4.0.4 has a command injection vulnerability.
- Record
CVE-2021-26541- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGHSA-67mm-m3wx-j7fr 9.8
Command injection in gitlog
The gitlog function in src/index.ts in gitlog before 4.0.4 has a command injection vulnerability.
- Record
GHSA-67mm-m3wx-j7fr- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-77
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
gitlognpm | before 4.0.4 | 4.0.4 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-26541 is a critical vulnerability (CVSS 9.8) in Gitlog Project Gitlog, published February 8, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 5.43%, the 92nd percentile. Fixed in gitlog 4.0.4.
References
github.com/domharrington/node-gitlog/pull/65
npmjs.com/package/gitlog
advisory.checkmarx.net/advisory/CX-2020-4301
nvd.nist.gov/vuln/detail/CVE-2021-26541
github.com/domharrington/node-gitlog/pull/65/commits/bb22ffb2c907e0284f887ab625e12b88c31f4bf4
github.com/advisories/GHSA-67mm-m3wx-j7fr
github.com/domharrington/node-gitlog