Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @github/copilot
  4. ›
  5. CVE-2026-29783

CVE-2026-29783: GitHub Copilot CLI Dangerous Shell Expansion Patterns Enable Arbitrary Code Execution

March 6, 2026

A security vulnerability has been identified in GitHub Copilot CLI’s shell tool that could allow arbitrary code execution through crafted bash parameter expansion patterns. An attacker who can influence the commands executed by the agent (e.g., via prompt injection through repository files, MCP server responses, or user instructions) can exploit bash parameter transformation operators to execute hidden commands, bypassing the safety assessment that classifies commands as “read-only.”

References

  • github.com/advisories/GHSA-g8r9-g2v8-jv6f
  • github.com/github/copilot-cli
  • github.com/github/copilot-cli/security/advisories/GHSA-g8r9-g2v8-jv6f
  • nvd.nist.gov/vuln/detail/CVE-2026-29783

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.0.423

Fixed versions

  • 0.0.423

Solution

Upgrade to version 0.0.423 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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/@github/copilot/CVE-2026-29783.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 07 Mar 2026 12:18:22 +0000.