CVE-2026-6951: Code Injection

Published Apr 25, 2026
·
Updated

Versions of the package simple-git before 3.36.0 are vulnerable to Remote Code Execution (RCE) due to an incomplete fix for CVE-2022-25912 that blocks the -c option but not the equivalent --config form. If untrusted input can reach the options argument passed to simple-git, an attacker may still achieve remote code execution by enabling protocol.ext.allow=always and using an ext:: clone source.

Affected Software

2 affected components
npm/simple-git<3.36.0
Simple-git Project Simple-git Node.js>=3.15.0<3.36.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade simple-git to a version that resolves this vulnerability.

    Fixed in 3.36.0
  2. Configuration

    Do not allow untrusted users to enable/propagate `protocol.ext.allow=always` into the `options` argument passed to simple-git; prevent untrusted input from controlling this setting.

    simple-git (git configuration via options argument) protocol.ext.allow = always
  3. Compensating control

    Ensure untrusted input cannot reach the `options` argument passed to simple-git (e.g., validate/whitelist and reject attacker-controlled option values such as `--config` that could enable `protocol.ext.allow=always`).

Event History

Apr 25, 2026
CVE Published
via MITRE·05:00 AM
Data Sourced
via MITRE·05:00 AM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·06:01 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·06:16 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-6951?

CVE-2026-6951 has a critical severity rating due to its potential for remote code execution.

2

How do I fix CVE-2026-6951?

To resolve CVE-2026-6951, upgrade to simple-git version 3.36.0 or later.

3

What types of attacks can CVE-2026-6951 enable?

CVE-2026-6951 can enable attackers to execute arbitrary code on the affected system.

4

Which versions of simple-git are affected by CVE-2026-6951?

CVE-2026-6951 affects all versions of simple-git prior to 3.36.0.

5

Is there a workaround for CVE-2026-6951?

No known workaround exists for CVE-2026-6951, so upgrading is the recommended solution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203