{"id":"CVE-2026-55437","published":"2026-07-08T00:29:18Z","modified":"2026-07-08T14:00:43Z","title":"Coder vulnerable to stored HTML injection via workspace agent logs in AgentLogLine component","vendor":"coder","product":"coder","tier":"tail","description":{"text":"Coder allows organizations to provision remote development environments via Terraform. Prior to versions 2.29.17, 2.32.7, 2.33.8, and 2.34.2, the `AgentLogLine` dashboard component instantiated `ansi-to-html` without `escapeXML: true` and inserted the result via `dangerouslySetInnerHTML` so HTML embedded in workspace agent log lines was rendered as live markup. Server-side sanitization did not neutralize HTML metacharacters. Exploitation requires a victim to view attacker-controlled agent logs in the dashboard. The fix in versions 2.29.17, 2.32.7, 2.33.8, and 2.34.2 enables `escapeXML: true` so HTML metacharacters are escaped before DOM insertion. No known workarounds are available.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00316,"percentile":0.25188,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/coder/coder/security/advisories/GHSA-7qw2-f75v-62f7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/coder/coder/pull/25808","tags":["x_refsource_MISC"]},{"url":"https://github.com/coder/coder/releases/tag/v2.29.17","tags":["x_refsource_MISC"]},{"url":"https://github.com/coder/coder/releases/tag/v2.32.7","tags":["x_refsource_MISC"]},{"url":"https://github.com/coder/coder/releases/tag/v2.33.8","tags":["x_refsource_MISC"]},{"url":"https://github.com/coder/coder/releases/tag/v2.34.2","tags":["x_refsource_MISC"]}],"priority":{"score":8.8,"factors":[{"name":"EPSS percentile","points":5.04},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"coder","affectedVersions":[{"vendor":"coder","product":"coder","versions":[">= 2.34.0, < 2.34.2",">= 2.33.0, < 2.33.8",">= 2.30.0, < 2.32.7","< 2.29.17"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-08T14:00:28.554141Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/coder/coder/v2","vulnerableRanges":[">=2.34.0, <2.34.2",">=2.33.0, <2.33.8",">=2.30.0, <2.32.7","<2.29.17"],"patched":["2.34.2","2.33.8","2.32.7","2.29.17"],"from":["GHSA-7qw2-f75v-62f7","GO-2026-5919"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/coder/coder","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2026-5919"],"provenance":"source"}],"summary":{"text":"The Coder product's dashboard, specifically its AgentLogLine component, renders workspace agent log lines as live HTML because the ansi-to-html conversion does not escape markup, causing stored HTML injection in affected versions prior to 2.29.17, 2.32.7, 2.33.8, and 2.34.2. An attacker who can get attacker-controlled content into workspace agent logs can have that HTML execute when a victim views those logs in the dashboard, which requires authenticated access, user interaction, and a low-privilege account for the attacker.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:31Z"},"euvd":{"id":"EUVD-2026-42150","exploited":false,"provenance":"source"}}