Skip to content
HighVulnerability

CVE-2026-22812: OpenCode unauthenticated HTTP server allows arbitrary shell command execution

Identifier
CVE-2026-22812
Published
Record updated
View JSON
Affected
  • opencode-ai < 1.0.216
Fixed in
1.0.216
  • released December 30, 2025, 13 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
16.5%

Summary

CVE-2026-22812 affects OpenCode, an open source AI coding agent, before version 1.0.216. OpenCode automatically starts an unauthenticated HTTP server, which lets any local process, or any website through permissive CORS, run arbitrary shell commands with the user's privileges. The weakness is classified as CWE-306, CWE-749 and CWE-942.

Mitigation

Fixed in 1.0.216.