{
  "id": "CVE-2026-22813",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-22813",
  "published_at": "2026-01-12T22:52:35.103Z",
  "title": "Malicious website can execute commands on the local system through XSS in the OpenCode web UI",
  "vendor": "anomalyco",
  "product": "opencode",
  "cvss": {
    "score": 9.4,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "OpenCode is an open source AI coding agent. The markdown renderer used for LLM responses will insert arbitrary HTML into the DOM. There is no sanitization with DOMPurify or even a CSP on the web interface to prevent JavaScript execution via HTML injection. This means controlling the LLM response for a chat session gets JavaScript execution on the http://localhost:4096 origin. This vulnerability is fixed in 1.1.10.",
  "cwe": "CWE-79",
  "cpes": [
    "cpe:2.3:a:anoma:opencode:*:*:*:*:*:-:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.4,
    "nvd": 6.1
  },
  "repos": [
    {
      "repo": "HodgeLuke/ai-agent-security-research",
      "url": "https://github.com/HodgeLuke/ai-agent-security-research",
      "created_at": "2026-03-29T11:19:22Z",
      "first_seen_at": "2026-11-15T01:46:12.516Z",
      "stars": 1,
      "is_poc": "no",
      "kind": "detection",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2025-07-14T21:03:53Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "anomalyco",
        "product": "opencode",
        "ranges": [
          "\u003c 1.1.10"
        ],
        "fixed_in": [
          "1.1.10"
        ]
      }
    ],
    "upgrade": [
      "Upgrade opencode to 1.1.10 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/anomalyco/opencode/security/advisories/GHSA-c83v-7274-4vgp"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
