{"id":"CVE-2026-55437","state":"PUBLISHED","title":"Coder vulnerable to stored HTML injection via workspace agent logs in AgentLogLine component","description":"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.","publishedAt":"2026-07-08T00:29:18.268Z","updatedAt":"2026-07-08T14:00:43.204Z","severity":{"score":5.4,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["coder coder"],"affected":[{"vendor":"coder","product":"coder","versions":[{"version":">= 2.34.0, < 2.34.2","status":"affected"},{"version":">= 2.33.0, < 2.33.8","status":"affected"},{"version":">= 2.30.0, < 2.32.7","status":"affected"},{"version":"< 2.29.17","status":"affected"}]}],"references":["https://github.com/coder/coder/security/advisories/GHSA-7qw2-f75v-62f7","https://github.com/coder/coder/pull/25808","https://github.com/coder/coder/releases/tag/v2.29.17","https://github.com/coder/coder/releases/tag/v2.32.7","https://github.com/coder/coder/releases/tag/v2.33.8","https://github.com/coder/coder/releases/tag/v2.34.2"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:12:24.861Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/55xxx/CVE-2026-55437.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-55437","state":"PUBLISHED","datePublished":"2026-07-08T00:29:18.268Z","dateUpdated":"2026-07-08T14:00:43.204Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-16T21:59:57.017Z"},"containers":{"cna":{"title":"Coder vulnerable to stored HTML injection via workspace agent logs in AgentLogLine component","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"coder","product":"coder","versions":[{"version":">= 2.34.0, < 2.34.2","status":"affected"},{"version":">= 2.33.0, < 2.33.8","status":"affected"},{"version":">= 2.30.0, < 2.32.7","status":"affected"},{"version":"< 2.29.17","status":"affected"}]}],"references":[{"url":"https://github.com/coder/coder/security/advisories/GHSA-7qw2-f75v-62f7","name":"https://github.com/coder/coder/security/advisories/GHSA-7qw2-f75v-62f7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/coder/coder/pull/25808","name":"https://github.com/coder/coder/pull/25808","tags":["x_refsource_MISC"]},{"url":"https://github.com/coder/coder/releases/tag/v2.29.17","name":"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","name":"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","name":"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","name":"https://github.com/coder/coder/releases/tag/v2.34.2","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.4,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-07-08T00:29:18.268Z"},"source":{"advisory":"GHSA-7qw2-f75v-62f7","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-08T14:00:28.554141Z","id":"CVE-2026-55437","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-08T14:00:43.204Z"}}]}}}