8.8
HIGH CVSS 3.1
CVE-2026-22812
OpenCode's Unauthenticated HTTP Server Allows Arbitrary Command Execution
Description

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.

INFO

Published Date :

Jan. 12, 2026, 11:15 p.m.

Last Modified :

Jan. 21, 2026, 3:14 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2026-22812 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Anoma opencode
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH [email protected]
Solution
Update OpenCode to version 1.0.216 or later to fix arbitrary command execution.
  • Update OpenCode to version 1.0.216.
  • Ensure the HTTP server is properly authenticated.
Public PoC/Exploit Available at Github

CVE-2026-22812 has a 16 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-22812.

URL Resource
https://github.com/anomalyco/opencode/security/advisories/GHSA-vxw4-wv6m-9hhh Vendor Advisory Exploit
https://github.com/anomalyco/opencode/security/advisories/GHSA-vxw4-wv6m-9hhh Vendor Advisory Exploit
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-22812 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Mirror of https://github.com/nomi-sec/PoC-in-GitHub

Updated: 2 weeks, 4 days ago
0 stars 0 fork 0 watcher
Born at : Feb. 7, 2026, 10:02 a.m. This repo has been linked 789 different CVEs too.

None

Python

Updated: 1 month, 1 week ago
0 stars 0 fork 0 watcher
Born at : Jan. 20, 2026, 12:29 p.m. This repo has been linked 1 different CVEs too.

OpenCode < v1.0.216 - Unauthenticated RCE

Python

Updated: 1 month, 1 week ago
0 stars 1 fork 1 watcher
Born at : Jan. 19, 2026, 9:20 p.m. This repo has been linked 1 different CVEs too.

Security-hardened fork of OpenCode - Fixes CVE-2026-22812 (CVSS 8.8 RCE) that upstream refuses to patch

Shell TypeScript Nix HTML JavaScript CSS Rust MDX Dockerfile Astro

Updated: 1 month, 1 week ago
0 stars 0 fork 0 watcher
Born at : Jan. 19, 2026, 4:52 a.m. This repo has been linked 1 different CVEs too.

CVE-2026-22812 - OpenCode Unauthenticated RCE-Nuclei template for scan

Updated: 1 month, 1 week ago
0 stars 0 fork 0 watcher
Born at : Jan. 18, 2026, 9:11 a.m. This repo has been linked 1 different CVEs too.

CVE-2026-22812

Python

Updated: 1 month, 1 week ago
0 stars 0 fork 0 watcher
Born at : Jan. 17, 2026, 10:28 a.m. This repo has been linked 1 different CVEs too.

None

Python

Updated: 1 month ago
22 stars 3 fork 3 watcher
Born at : Jan. 16, 2026, 12:25 p.m. This repo has been linked 1 different CVEs too.

CVE-2026-22812 - OpenCode Unauth RCE

Python

Updated: 1 month, 1 week ago
1 stars 0 fork 0 watcher
Born at : Jan. 16, 2026, 11:15 a.m. This repo has been linked 1 different CVEs too.

Your Vibe Coding Toolkit A cross-platform desktop application for managing development tools, AI coding assistants, and dependencies

assistants developer-tools toolkit toolkits vibe-coding assistants-ai

HTML TypeScript CSS Rust

Updated: 13 hours, 33 minutes ago
768 stars 49 fork 49 watcher
Born at : Jan. 16, 2026, 6:44 a.m. This repo has been linked 1 different CVEs too.

这是一个每天同步Vulnerability-Wiki中docs-base中内容的项目

HTML

Updated: 2 days, 16 hours ago
8 stars 1 fork 1 watcher
Born at : Sept. 20, 2024, 3:27 a.m. This repo has been linked 272 different CVEs too.

Config files for my GitHub profile.

config github-config

Updated: 1 month, 1 week ago
2 stars 0 fork 0 watcher
Born at : March 2, 2024, 3:40 a.m. This repo has been linked 2 different CVEs too.

None

Updated: 15 hours, 41 minutes ago
1 stars 0 fork 0 watcher
Born at : June 21, 2023, 4:15 a.m. This repo has been linked 1 different CVEs too.

一个 CVE 漏洞预警知识库,无 exp/poc,部分包含修复方案。A knowledge base of CVE security vulnerability, no PoCs/exploits.

Updated: 3 days, 11 hours ago
159 stars 23 fork 23 watcher
Born at : Jan. 5, 2023, 2:19 a.m. This repo has been linked 230 different CVEs too.

TOP All bugbounty pentesting CVE-2023- POC Exp RCE example payload Things

bugbounty cve exp exploit payload poc rce vulnerability

Shell

Updated: 16 hours, 45 minutes ago
719 stars 123 fork 123 watcher
Born at : March 19, 2022, 1:54 a.m. This repo has been linked 283 different CVEs too.

一个漏洞 PoC 知识库。A knowledge base for vulnerability PoCs(Proof of Concept), with 1k+ vulnerabilities.

poc

Dockerfile Java Python

Updated: 12 hours, 10 minutes ago
4816 stars 957 fork 957 watcher
Born at : Feb. 20, 2022, 6:43 a.m. This repo has been linked 476 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-22812 vulnerability anywhere in the article.

  • Daily CyberSecurity
Critical OpenCode Flaws Let Websites Hijack Your PC

Two vulnerabilities were found in the open-source OpenCode agent that let attackers write malicious code directly onto your machine. Security researchers have disclosed two high-severity flaws that tu ... Read more

Published Date: Jan 14, 2026 (1 month, 1 week ago)
  • security.nl
Lek in OpenCode laat websites willekeurige code op systeem gebruikers uitvoeren

Een kwetsbaarheid in AI coding agent OpenCode zorgt ervoor dat websites willekeurige code op het systeem van gebruikers kunnen uitvoeren, zonder dat hiervoor enige interactie is vereist. De ontwikkela ... Read more

Published Date: Jan 13, 2026 (1 month, 2 weeks ago)

The following table lists the changes that have been made to the CVE-2026-22812 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Jan. 21, 2026

    Action Type Old Value New Value
    Added CPE Configuration OR *cpe:2.3:a:anoma:opencode:*:*:*:*:*:-:*:* versions up to (excluding) 1.0.216
    Added Reference Type CISA-ADP: https://github.com/anomalyco/opencode/security/advisories/GHSA-vxw4-wv6m-9hhh Types: Exploit, Vendor Advisory
    Added Reference Type GitHub, Inc.: https://github.com/anomalyco/opencode/security/advisories/GHSA-vxw4-wv6m-9hhh Types: Exploit, Vendor Advisory
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jan. 13, 2026

    Action Type Old Value New Value
    Added Reference https://github.com/anomalyco/opencode/security/advisories/GHSA-vxw4-wv6m-9hhh
  • New CVE Received by [email protected]

    Jan. 12, 2026

    Action Type Old Value New Value
    Added Description 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.
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
    Added CWE CWE-749
    Added CWE CWE-306
    Added CWE CWE-942
    Added Reference https://github.com/anomalyco/opencode/security/advisories/GHSA-vxw4-wv6m-9hhh
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 8.8
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact