Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-22812: OpenCode is an open source AI coding agent

60
This week
HIGH 8.8UPGRADE

CVE-2026-22812 is a high-severity flaw (CVSS 8.8) affecting opencode. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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.

Why this priority

  • High severity
  • EPSS top 3%: very likely to be exploited
  • Public exploit reference

A fixed release or distro patch exists.

Risk facts

CVSS score8.8 (High)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionRequired
EPSS exploit chance16.5% (top 3%)
CISA exploited listNo
WeaknessCWE-306, CWE-749, CWE-942
Published2026-01-12
Last modified2026-06-17
Publisher (CNA): GitHub, Inc. · Vendor: anoma

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

anoma opencode UPGRADE
Affected: < 1.0.216
Fixed in: 1.0.216
Safe to downgrade to: no unaffected older release
1. Check installed version
apt-cache policy opencode || rpm -q opencode || opencode --version
2. UPGRADE to 1.0.216 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade opencode
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade opencode
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.

Exact fixes by distribution

npm · opencode-ai · FIXED · 1.0.216 · vulnerable: < 1.0.216 · source
npm install opencode-ai@">=1.0.216" npm ls opencode-ai
Fedora 46 · jgmenu · FIXED · 4.7.0-1.fc46 · FEDORA-2026-3053ee4399 · source
sudo dnf upgrade --advisory=FEDORA-2026-3053ee4399
Fedora ELN · python-tkrzw · FIXED · 0.1.32-12.eln159 · FEDORA-2026-0161d71544 · source
sudo dnf upgrade --advisory=FEDORA-2026-0161d71544

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2026-22812?

opencode: upgrade to 1.0.216. Exact commands for each OS are on this page.

Is CVE-2026-22812 being exploited?

CVE-2026-22812 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2026-22812 affect?

CVE-2026-22812 affects opencode. Severity is high (CVSS 8.8). 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'

How urgent is CVE-2026-22812?

Priority 60/100. High severity; EPSS top 3%: very likely to be exploited; Public exploit reference

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.