Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

GHSA-7qw2-f75v-62f7: Coder vulnerable to stored HTML injection via workspace agent logs in AgentLogLine component

0
Medium
Published: 07/06/2026 (07/06/2026, 21:12:56 UTC)
Source: GCVE Database
Product: github.com/coder/coder/v2

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Affected software

Goghsa
github.com/coder/coder/v2
Affected versions
>=2.34.0 <2.34.2
Goghsa
github.com/coder/coder/v2
Affected versions
>=2.33.0 <2.33.8
Goghsa
github.com/coder/coder/v2
Affected versions
>=2.30.0 <2.32.7
Goghsa
github.com/coder/coder/v2
Affected versions
<2.29.17

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/06/2026, 23:11:32 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses