Skip to main content
← All vulnerabilities
CVE-2026-22812GHSA-VXW4-WV6M-9HHH

OpenCode's Unauthenticated HTTP Server Allows Arbitrary Command Execution

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.0.216
9 proofs of concept on GitHub, 1 Nuclei template
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

OpenCode is an open source AI coding agent. Prior to 1.0.216, OpenCode automatically starts an unauthenticated HTTP server that allows any local process (or any website via permissive CORS) to execute arbitrary shell commands with the user's privileges. This vulnerability is fixed in 1.0.216.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated
  4. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • anomalyco opencode

    fixed in 1.0.216

  • opencode-ainpm

    fixed in 1.0.216

References 11

GitHub · anomalyco/opencode

GitHub · projectdiscovery/nuclei-templates

GitHub · 0xBlackash/CVE-2026-22812

GitHub · 0xgh057r3c0n/CVE-2026-22812

GitHub · CayberMods/CVE-2026-22812-POC

GitHub · Hex-Neo/CVE-2026-22812-OpenCode-RCE-exp

GitHub · HodgeLuke/ai-agent-security-research

GitHub · Udyz/CVE-2026-22812-Exp

GitHub · barrersoftware/opencode-secure

GitHub · mad12wader/CVE-2026-22812

GitHub · rohmatariow/CVE-2026-22812-exploit