CVE-2026-22812
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.
Description as published by the source, in English.
Key facts
- Published
- 2026-01-12
- Last modified
- 2026-06-17
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H- Scored by
- security-advisories@github.com
- Probability of exploitation
-
17.0 %
higher than 97 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| opencode-ai (npm) | < 1.0.216 | Affected | |
| Anoma | Opencode | < 1.0.216 | Affected |
Weakness type
-
CWE-306: Missing Authentication for Critical Functionality
The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.
-
CWE-749: Exposed Dangerous Method or Function
The product provides an Applications Programming Interface (API) or similar interface for interaction with external actors, but the interface includes a dangerous method or function that is not properly restricted.
-
CWE-942: Permissive Cross-domain Security Policy with Untrusted Domains
The product uses a web-client protection mechanism such as a Content Security Policy (CSP) or cross-domain policy file, but the policy includes untrusted domains with which the web client is allowed to communicate.
References
- https://github.com/anomalyco/opencode/security/advisories/GHSA-vxw4-wv6m-9hhh
- https://github.com/anomalyco/opencode/security/advisories/GHSA-vxw4-wv6m-9hhh
Related at Berigo
Articles
-
Invisible characters hidden inside words carry phishing past the email filter
Same product
2026-09-26
Microsoft has tracked a finance themed phishing campaign that placed invisible Unicode tag characters inside words such as "funding", so that filters…
-
Five remote hires turned out to be probable North Korean workers
Same product
2026-08-27
During 2026 Huntress supported investigations in which five remote employees were assessed as likely North Korean workers. The roles covered IT, sale…
-
AI-driven attacks hit broadly, and confidence in autonomous tools falls
Same product
2026-07-28
A CDW report states that 43% of organisations have met AI-enhanced phishing and 37% AI-driven malware. A Cobalt report states that only 9% rely on au…
-
EY notifies clients after third-party platform breach
Same product
2026-07-20
Attackers downloaded client documents containing identity and card details from a third-party platform EY used for tax work.
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.