MediumVulnerabilityLLM-specific
CVE-2026-22813: OpenCode markdown renderer allows HTML injection leading to script execution
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-22813
- Published
- Record updated
- Affected
- opencode-ai < 1.1.10
- Fixed in
- 1.1.10
- released January 9, 2026, 3 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.9%
Summary
CVE-2026-22813 affects OpenCode, an open source AI coding agent. The markdown renderer for LLM responses inserts arbitrary HTML into the DOM without DOMPurify sanitization or a CSP on the web interface, so controlling a chat session's LLM response yields JavaScript execution on the http://localhost:4096 origin. GitHub, Inc. assigned a CVSS 4.0 base score of 9.4 (CRITICAL), while NIST has not yet provided an assessment.
Mitigation
Fixed in 1.1.10
Topics
Related items
- MediumCVE-2026-121936: easyVoice server-side request forgery through openaiBaseUrl in /api/v1/ttsSimilar attack · NVD/CVE Database
- MediumCVE-2026-118628: MLflow get-artifacts server-side request forgery information disclosureSimilar attack · NVD/CVE Database
- HighCVE-2026-118625: MLflow Tracking Server privilege escalation via get_endpointsSimilar attack · NVD/CVE Database
- InfoWhen trust becomes the payload: Inside the threats, etc quarterly reportSimilar attack · Elastic Security Labs
- MediumCritical Langflow flaws enable authentication bypass and RCESimilar attack · CSO Online