✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more
Andrii Bidochko
  • Updated: January 24, 2026
  • 2 min read

Critical Remote Code Execution Vulnerability Discovered in OpenCode – Implications for AI Coding Agents

Critical Remote Code Execution Vulnerability Discovered in OpenCode – Implications for AI Coding Agents

A severe remote code execution (RCE) flaw has been uncovered in OpenCode versions earlier than v1.1.10. The vulnerability allows attackers to execute arbitrary shell commands through the platform’s HTTP API, exposing systems to potential takeover and data compromise.

The issue stems from insufficient input sanitisation, which enables prompt injection attacks. By crafting specially‑designed payloads, malicious actors can bypass normal security checks and run commands directly on the host server. The original investigation, published by JohnCodes, provides a step‑by‑step demonstration of the exploit and highlights the broader security concerns for AI‑driven coding assistants that rely on OpenCode.

Key takeaways from the analysis include:

  • Arbitrary command execution: Attackers can leverage the vulnerable API endpoint to run any shell command, potentially gaining full system control.
  • Prompt injection risk: The flaw demonstrates how AI coding agents can be manipulated into generating malicious code when fed crafted inputs.
  • Urgent patch requirement: Updating to OpenCode v1.1.10 or later mitigates the issue by tightening input validation and adding stricter permission checks.
  • Need for telemetry and audit tools: Continuous monitoring and robust audit logging are essential to detect and respond to exploitation attempts quickly.

Organizations using OpenCode should immediately review their deployment versions and apply the latest security patches. Additionally, integrating comprehensive telemetry solutions will help identify anomalous API usage patterns that may indicate an ongoing attack.

For a deeper dive into the vulnerability and remediation steps, read the full analysis on JohnCodes.com. Stay informed about the latest security developments by visiting our News section, exploring our Features, or checking out the latest posts on our Blog.


Andrii Bidochko

CTO UBOS

Andrii Bidochko is an AI entrepreneur and researcher focused on AI agents, reinforcement learning, and autonomous systems. He writes about the technologies shaping the future of machine intelligence, from frontier models and agent architectures to real-world AI applications.

Sign up for our newsletter

Stay up to date with the roadmap progress, announcements and exclusive discounts feel free to sign up with your email.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.