{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "2.34.0"
              },
              {
                "fixed": "2.34.2"
              },
              {
                "introduced": "2.33.0"
              },
              {
                "fixed": "2.33.8"
              },
              {
                "introduced": "2.30.0"
              },
              {
                "fixed": "2.32.7"
              },
              {
                "introduced": "0"
              },
              {
                "fixed": "2.29.17"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "3006da5ef7a9c27755aa5b2f3f5f05d2c8971a58"
            },
            {
              "introduced": "f009c17217e6bad9a61ba511d23735bc1ce94da0"
            },
            {
              "introduced": "43e67d12e278e13399cffc77f132e8e628339477"
            },
            {
              "introduced": "0"
            },
            {
              "fixed": "d7774e5c4ca222ee89a8b6aa82b61c1f8bb81d1f"
            },
            {
              "fixed": "f9486be96df392b017941ff6a6bd43a629adc86c"
            },
            {
              "fixed": "0374b00b63bc5043a507194f284ef298e0ea3b52"
            },
            {
              "fixed": "77253bfc55665027a374a5d2fb70f4ff74410326"
            }
          ],
          "repo": "https://github.com/coder/coder",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-7qw2-f75v-62f7"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55437.json"
  },
  "details": "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.",
  "id": "CVE-2026-55437",
  "modified": "2026-07-09T03:52:33.887626917Z",
  "published": "2026-07-08T00:29:18.268Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/coder/coder/releases/tag/v2.29.17"
    },
    {
      "type": "WEB",
      "url": "https://github.com/coder/coder/releases/tag/v2.32.7"
    },
    {
      "type": "WEB",
      "url": "https://github.com/coder/coder/releases/tag/v2.33.8"
    },
    {
      "type": "WEB",
      "url": "https://github.com/coder/coder/releases/tag/v2.34.2"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55437.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/coder/coder/security/advisories/GHSA-7qw2-f75v-62f7"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-55437"
    },
    {
      "type": "FIX",
      "url": "https://github.com/coder/coder/pull/25808"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Coder vulnerable to stored HTML injection via workspace agent logs in AgentLogLine component"
}