domharrington/node-gitlog · Security
Command injection in gitlog
- GHSA ID
- GHSA-67mm-m3wx-j7fr
- CVE ID
- CVE-2021-26541
- Severity
- critical
- Published
- Updated
- CVSS
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Description
The gitlog function in src/index.ts in gitlog before 4.0.4 has a command injection vulnerability.
CWEs
- CWE-77 · Improper Neutralization of Special Elements used in a Command ('Command Injection')
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-26541 ↗
- https://github.com/domharrington/node-gitlog/pull/65 ↗
- https://github.com/domharrington/node-gitlog/pull/65/commits/bb22ffb2c907e0284f887ab625e12b88c31f4bf4 ↗
- https://www.npmjs.com/package/gitlog ↗
- https://advisory.checkmarx.net/advisory/CX-2020-4301 ↗
- https://github.com/advisories/GHSA-67mm-m3wx-j7fr ↗