GHSA-7qw2-f75v-62f7: Coder vulnerable to stored HTML injection via workspace agent logs in AgentLogLine component
A stored HTML injection vulnerability exists in the AgentLogLine dashboard component of Coder, where HTML embedded in workspace agent log lines is rendered as live markup due to improper escaping. This allows a user with workspace-owner access to inject arbitrary HTML into agent logs, which is then rendered when another user views the workspace page. Although inline scripts are blocked by Content Security Policy, attackers can still inject meta refresh redirects, style rules for UI redressing, or CSS-based exfiltration. The vulnerability requires both the ability to run a workspace and a victim viewing the affected page. Fixes have been released that enable proper escaping of HTML metacharacters.
AI Analysis
Technical Summary
The AgentLogLine component in Coder's dashboard instantiated the ansi-to-html library without enabling escapeXML, causing HTML metacharacters in workspace agent logs to be rendered as live HTML via dangerouslySetInnerHTML. Server-side sanitization did not neutralize these characters, enabling stored HTML injection. Exploitation requires a workspace owner to inject malicious HTML into logs and a victim user to view those logs. While inline scripts are blocked by Content Security Policy, attackers can still leverage meta refresh redirects, CSS-based UI redressing, and data exfiltration techniques. The issue is fixed by enabling escapeXML: true in ansi-to-html, escaping HTML metacharacters before DOM insertion. Patches are available in versions 2.34.2, 2.33.8, 2.32.7, and 2.29.17 and later.
Potential Impact
An attacker with workspace-owner privileges can inject arbitrary HTML into agent logs, which is then rendered in the browser of any user viewing the workspace page, including administrators. This can lead to UI redressing, forced page redirects via meta refresh, and CSS-based data exfiltration. Inline JavaScript execution is blocked by Content Security Policy, limiting the scope of exploitation. The vulnerability requires both the ability to write to logs and a victim viewing the logs, reducing the attack surface.
Mitigation Recommendations
A fix is available and has been backported to all supported release lines: 2.34.2, 2.33.8, 2.32.7, and 2.29.17. Users should upgrade to these versions or later to remediate the vulnerability. No workarounds are available. Applying the official patch ensures HTML metacharacters are properly escaped before rendering, preventing stored HTML injection.
GHSA-7qw2-f75v-62f7: Coder vulnerable to stored HTML injection via workspace agent logs in AgentLogLine component
Description
A stored HTML injection vulnerability exists in the AgentLogLine dashboard component of Coder, where HTML embedded in workspace agent log lines is rendered as live markup due to improper escaping. This allows a user with workspace-owner access to inject arbitrary HTML into agent logs, which is then rendered when another user views the workspace page. Although inline scripts are blocked by Content Security Policy, attackers can still inject meta refresh redirects, style rules for UI redressing, or CSS-based exfiltration. The vulnerability requires both the ability to run a workspace and a victim viewing the affected page. Fixes have been released that enable proper escaping of HTML metacharacters.
CVSS v3.1
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The AgentLogLine component in Coder's dashboard instantiated the ansi-to-html library without enabling escapeXML, causing HTML metacharacters in workspace agent logs to be rendered as live HTML via dangerouslySetInnerHTML. Server-side sanitization did not neutralize these characters, enabling stored HTML injection. Exploitation requires a workspace owner to inject malicious HTML into logs and a victim user to view those logs. While inline scripts are blocked by Content Security Policy, attackers can still leverage meta refresh redirects, CSS-based UI redressing, and data exfiltration techniques. The issue is fixed by enabling escapeXML: true in ansi-to-html, escaping HTML metacharacters before DOM insertion. Patches are available in versions 2.34.2, 2.33.8, 2.32.7, and 2.29.17 and later.
Potential Impact
An attacker with workspace-owner privileges can inject arbitrary HTML into agent logs, which is then rendered in the browser of any user viewing the workspace page, including administrators. This can lead to UI redressing, forced page redirects via meta refresh, and CSS-based data exfiltration. Inline JavaScript execution is blocked by Content Security Policy, limiting the scope of exploitation. The vulnerability requires both the ability to write to logs and a victim viewing the logs, reducing the attack surface.
Mitigation Recommendations
A fix is available and has been backported to all supported release lines: 2.34.2, 2.33.8, 2.32.7, and 2.29.17. Users should upgrade to these versions or later to remediate the vulnerability. No workarounds are available. Applying the official patch ensures HTML metacharacters are properly escaped before rendering, preventing stored HTML injection.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-7qw2-f75v-62f7
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-55437"]
- Ecosystems
- ["Go"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a4c340227e9c797195f5e5b
Added to database: 07/06/2026, 23:02:26 UTC
Last enriched: 07/06/2026, 23:11:32 UTC
Last updated: 07/06/2026, 23:11:32 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.