Appsecure logo

CVE-2026-22812: High Vulnerability in Anoma OpenCode

CVE-2026-22812 is a high-severity vulnerability in Anoma's OpenCode, allowing arbitrary command execution through an unauthenticated HTTP server. Immediate remediation is required to prevent exposure.

HIGHPublic ExploitCVSS 8.8 · Published January 12, 2026

Not a customer? See how AppSecure simulates real world attacks to protect your infrastructure.

Speak to Experts

CVE-2026-22812 is classified as a high-severity vulnerability with a CVSS score of 8.8. This vulnerability allows an unauthenticated HTTP server to be automatically started by OpenCode, an open-source AI coding agent, prior to version 1.0.216. The server permits any local process or website (via permissive CORS) to execute arbitrary shell commands with the user's privileges, posing significant risks.

The urgency for organizations to address this vulnerability is critical. Attackers may leverage this vulnerability to execute unauthorized commands, leading to potential data breaches or system compromise. Organizations should prioritize patching immediately.

The vulnerability has been publicly acknowledged, and a fix is available in version 1.0.216 of OpenCode. Organizations using earlier versions should implement the patch as soon as possible to mitigate the risks.

The exploitation status is confirmed as high, with known exploits reported. Organizations must remain vigilant and act swiftly to secure their environments against potential attacks.

Vulnerability Details

OpenCode, prior to version 1.0.216, is affected by a design flaw that leads to the automatic initiation of an unauthenticated HTTP server. This server allows any local process or website to execute arbitrary shell commands with the user's privileges, significantly elevating the risk of unauthorized access. This vulnerability is tracked under multiple CWE identifiers, including CWE-306, CWE-749, and CWE-942.

The CVSS score of 8.8 indicates a high severity level, as the attack vector is categorized as NETWORK, and the attack complexity is low. This situation allows attackers to exploit the vulnerability without requiring significant skill or resources.

The vulnerability was published on January 12, 2026. Organizations using OpenCode should upgrade to version 1.0.216 or later to eliminate this risk.

Technical Analysis

The root cause of CVE-2026-22812 lies in the automatic startup of an unauthenticated HTTP server which does not properly validate requests. This design flaw enables arbitrary command execution when exploited.

The attack vector is network-based, meaning that an attacker can exploit this vulnerability remotely from any location. The attack complexity is low, requiring no special privileges, and user interaction is necessary for the vulnerability to be exploited.

Exploitation of this vulnerability can lead to high impacts concerning confidentiality, integrity, and availability, as attackers may execute arbitrary commands that could expose sensitive data or disrupt service.

Risk & Impact Analysis

Risk to organizations includes potential unauthorized access to systems and sensitive data. The blast radius could affect not only individual systems but also interconnected environments, leading to widespread breaches.

Given the high CVSS score of 8.8, organizations should assess their exposure and prioritize remediation. The urgency to address this vulnerability is underscored by the potential for exploitation and the availability of known exploits.

Exploitation Status

Signal

Status

Known Exploit

Yes

Public PoC

Yes

Actively Exploited

No

Ransomware Use

No

Affected Versions

All versions of OpenCode prior to 1.0.216 are affected by this vulnerability. Organizations should ensure they upgrade to the latest version to mitigate the risks associated with this vulnerability.

Mitigation & Remediation

Organizations should apply the patch available in version 1.0.216 of OpenCode immediately. In cases where patching is not feasible, implementing network controls to restrict access to the HTTP server can serve as a temporary workaround.

Continuous monitoring and security testing can help identify any unauthorized access attempts or exploitation activities on the system.

For further guidance on securing your environments, organizations can utilize services such as penetration testing to ensure comprehensive security measures are in place.

Detection Guidance

Organizations should monitor logs for indications of unauthorized access to the HTTP server. Behavioral anomalies such as unexpected command executions or network traffic patterns should be investigated.

Additionally, implementing network signatures to detect abnormal HTTP requests can assist in identifying potential exploitation attempts.

AppSecure Threat Intelligence Insight

The long-term significance of CVE-2026-22812 represents a critical reminder of the security challenges associated with open-source software and the risks of unauthenticated services. Organizations should take proactive steps to ensure that such vulnerabilities are addressed swiftly.

This vulnerability highlights the importance of incorporating security practices in the development lifecycle, emphasizing the need for secure coding and thorough testing.

Security teams are encouraged to stay informed about emerging vulnerabilities and apply lessons learned from incidents like CVE-2026-22812 to strengthen their security posture. For more insights on vulnerability management, organizations can refer to vulnerability management program best practices.

To further enhance security awareness, organizations can explore resources on the importance of penetration testing methodology in identifying vulnerabilities before they can be exploited.

Overall, CVE-2026-22812 serves as a critical reminder of the importance of maintaining vigilant security practices to protect against evolving threats.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Latest CVEs. Recently published vulnerabilities from the NVD database.

View all vulnerabilities
CVE IDSeverity
CVE-2025-65418HIGH
CVE-2025-65417MEDIUM
CVE-2025-65416MEDIUM
CVE-2025-65415MEDIUM
CVE-2025-61314HIGH

Protect Your Business with Hacker-Focused Approach.