Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-29783

HIGH 7.5EPSS 46%

GitHub Copilot CLI allows for dangerous shell expansion patterns that enable arbitrary command execution

Also known as GHSA-g8r9-g2v8-jv6f

Mitigation

  • Upgrade @github/copilot to 0.0.423 or later.

Who should check

  • Projects that depend on npm package @github/copilot (< 0.0.423)
  • Anyone running github copilot-cli <= 0.0.422

Vulnerability facts

Affected
@github/copilot < 0.0.423
Fixed in
0.0.423
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.5 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: Present
  • Privileges required: None
  • User interaction: Active
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
EPSS
0.65% chance of exploitation in 30 days (percentile 46, 2026-11-26)
CWE
CWE-78
Published
Modified

Description

The shell tool within GitHub Copilot CLI versions prior to and including 0.0.422 can 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." This has been patched in version 0.0.423. The vulnerability stems from how the CLI's shell safety assessment evaluates commands before execution. The safety layer parses and classifies shell commands as either read-only (safe) or write-capable (requires user approval). However, several bash parameter expansion features can embed executable code within arguments to otherwise read-only commands, causing them to appear safe while actually performing arbitrary operations. The specific dangerous patterns are ${var@P}, ${var=value} / ${var:=value}, ${!var}, and nested $(cmd) or <(cmd) inside ${...} expansions. An attacker who can influence command text sent to the shell tool - for example, through prompt injection via malicious repository content (README files, code comments, issue bodies), compromised or malicious MCP server responses, or crafted user instructions containing obfuscated commands - could achieve arbitrary code execution on the user's workstation. This is possible even in permission modes that require user approval for write operations, since the commands can appear to use only read-only utilities to ultimately trigger write operations. Successful exploitation could lead to data exfiltration, file modification, or further system compromise.

Affected and fixed versions

Package / productAffectedFixedSource
npm @github/copilot< 0.0.4230.0.423osv
github copilot-cli<= 0.0.422—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-29783. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-29783.md
Affected: @github/copilot < 0.0.423
Fixed in: 0.0.423

Steps:
1. Search this machine and project for @github/copilot (npm), github copilot-cli: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-29783 being exploited?

There is no confirmed exploitation: CVE-2026-29783 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.65% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-29783?

High: CVSS 7.5 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2026-29783?

@github/copilot < 0.0.423.

Is there a fix for CVE-2026-29783?

Yes. Fixed in 0.0.423. Upgrade @github/copilot to 0.0.423 or later.

How do I check if I'm affected by CVE-2026-29783?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors