CVE-2021-26541 json
Command injection in gitlog
published 2021-02-08 5 y ago modified 2026-06-17 4 mo ago also GHSA-67mm-m3wx-j7fr , EUVD-2021-0771
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 5.4%
- EPSS 5.4% chance of exploitation in 30 days, percentile 92%
- public exploits
- 0
- none known
Summary
The gitlog function in src/index.ts in gitlog before 4.0.4 has a command injection vulnerability.
Patch / fix
- npm gitlog 4.0.4
- gitlog_project gitlog 4.0.4
- github.com/domharrington/node-gitlog#65 commit
- github.com/domharrington/node-gitlog#65 pull request
Exploit prediction
5.43% chance of exploitation in the next 30 days, higher than 92% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- advisory.checkmarx.net https://advisory.checkmarx.net/advisory/CX-2020-4301 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | gitlog | <4.0.4 |
4.0.4 |
Classification
References
-
github.com
/domharrington/node-gitlog/pull/65
web, patch, third-party-advisory
-
github.com
/domharrington/node-gitlog/pull/65/commits/bb22ffb2c907e0284f887ab625e12b88c31f4bf4
web
-
advisory.checkmarx.net
/advisory/CX-2020-4301
web, exploit, third-party-advisory
-
npmjs.com
/package/gitlog
web, product, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-26541
advisory
-
github.com
/domharrington/node-gitlog
package
Sources
- CVE List CVE-2021-26541
- GitHub Advisory GHSA-67mm-m3wx-j7fr
- NVD CVE-2021-26541
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.