Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. simple-git
  4. ›
  5. CVE-2026-28291

CVE-2026-28291: simple-git Affected by Command Execution via Option-Parsing Bypass

April 13, 2026 (updated April 14, 2026)

simple-git enables running native Git commands from JavaScript. Some commands accept options that allow executing another command; because this is very dangerous, execution is denied unless the user explicitly allows it. This vulnerability allows a malicious actor who can control the options to execute other commands even in a “safe” state where the user has not explicitly allowed them. The vulnerability was introduced by an incorrect patch for CVE-2022-25860. It is likely to affect all versions prior to and including 3.28.0.

References

  • github.com/advisories/GHSA-jcxm-m3jx-f287
  • github.com/steveukx/git-js
  • github.com/steveukx/git-js/blob/789c13ebabcf18ebe0b3a0c88ebb4037dede42e3/simple-git/src/lib/plugins/block-unsafe-operations-plugin.ts
  • github.com/steveukx/git-js/commit/1effd8e5012a5da05a9776512fac3e39b11f2d2d
  • github.com/steveukx/git-js/releases/tag/simple-git%403.32.0
  • github.com/steveukx/git-js/security/advisories/GHSA-jcxm-m3jx-f287
  • nvd.nist.gov/vuln/detail/CVE-2026-28291
  • www.cve.org/CVERecord?id=CVE-2022-25860

Code Behaviors & Features

Detect and mitigate CVE-2026-28291 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 3.32.0

Fixed versions

  • 3.32.0

Solution

Upgrade to version 3.32.0 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

npm/simple-git/CVE-2026-28291.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:19 +0000.