Skip to main content

Coder CVE-2026-55437

| EUVDEUVD-2026-42150 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-07-06 https://github.com/coder/coder GHSA-7qw2-f75v-62f7
5.4
CVSS 3.1 · Vendor: https://github.com/coder/coder
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as workspace owner
  2. Delivery
    Configure agent to emit HTML-injected log lines
  3. Exploit
    Wait for privileged user (e.g., admin) to view workspace dashboard
  4. Execution
    ansi-to-html renders raw HTML into DOM via dangerouslySetInnerHTML
  5. Persist
    Injected HTML executes in victim browser session
  6. Impact
    Exfiltrate tokens via img beacon or redirect victim via meta refresh

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The attacker must hold workspace-owner access on the target Coder instance, corresponding to CVSS PR:L - a standard authenticated role available to any user granted workspace creation rights. The victim must actively view the workspace page in the Coder web dashboard (CVSS UI:R); the attack does not trigger on page load of unrelated pages. The AgentLogLine component must render the attacker's log output in the victim's browser, which occurs whenever any user with dashboard access views the affected workspace. Content Security Policy on the Coder dashboard prevents inline script execution, limiting the attack to non-script HTML injection techniques such as meta refresh redirects, CSS rule injection for UI redressing or exfiltration via url() references, and external resource loading via img or link tags. Exploitation is bounded by two hard requirements: the attacker cannot be an entirely unauthenticated party, and a victim must take the active step of viewing the workspace.

Impact

The vendor-assigned CVSS 3.1 score of 5.4 (AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N) appropriately captures the key constraints: the attacker requires authenticated workspace-owner access (PR:L), and a victim must actively navigate to the workspace dashboard page (UI:R). The Scope:Changed designation is correctly applied, as the exploit crosses from the attacker's workspace context into the victim's authenticated browser session. Despite the moderate aggregate score, the real-world risk is elevated in multi-tenant Coder deployments where untrusted or semi-trusted users hold workspace creation rights, because administrators are a feasible victim class - they routinely inspect workspaces. CSS-based exfiltration and meta refresh attacks remain viable even under the existing Content Security Policy, meaning the limited C:L/I:L metrics may understate practical session-level impact against high-privilege victims. This CVE is not listed in CISA KEV, no EPSS score was provided in the input data, and no public proof-of-concept has been identified, indicating exploitation has not been observed at scale. In fully trusted single-user or internally controlled deployments the practical risk is low; in shared or SaaS-style team environments it warrants prompt patching.

Exploit ScenarioDerived

An attacker with workspace-owner privileges on a shared Coder deployment configures their workspace agent to emit log lines containing injected HTML, such as an img tag pointing to an attacker-controlled server or a meta refresh redirect to a phishing page. When an administrator navigates to the workspace dashboard to inspect or assist with the workspace, the AgentLogLine component renders the injected markup in the admin's browser session, delivering a beacon with session context or redirecting the admin to a credential-harvesting site. No public proof-of-concept has been identified, but the technique requires no memory corruption or privilege escalation - only the ability to write to agent logs and wait for a victim page view.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 06, 2026

Stored cross-site scripting in Coder's AgentLogLine dashboard component allows any workspace owner to inject arbitrary HTML into agent log output, which renders as live markup in the browser session of any user - including administrators - who views the workspace page. The vulnerability stems from the ansi-to-html library being invoked without escapeXML: true, with output passed directly to React's dangerouslySetInnerHTML without server-side sanitization. While Coder's Content Security Policy blocks inline script execution, the attack surface still includes meta refresh redirects, CSS-based data exfiltration, UI redressing, and external image beacons; no public exploit is identified at time of analysis, and patched versions are available across all supported release lines.

RemediationAI

Upgrade to the patched version for your active release line: v2.34.2 (release line 2.34), v2.33.8 (release line 2.33), v2.32.7 (release line 2.32), or v2.29.17 (2.29 ESR). The fix enables escapeXML: true in the ansi-to-html invocation, causing HTML metacharacters in agent log output to be escaped before DOM insertion, neutralizing the injection vector. No official workarounds are documented by the vendor. As a temporary compensating control where immediate patching is not possible, restricting workspace creation permissions to fully trusted internal users eliminates the attacker-controlled log injection surface, though this constrains legitimate use of the platform. Deployments on unsupported release lines should be upgraded to a supported and patched line. Patch details and release notes are at https://github.com/coder/coder/security/advisories/GHSA-7qw2-f75v-62f7 and the fix PR is https://github.com/coder/coder/pull/25808.

Affected VersionsENISA

coder < 2.29.17
coder 2.34.0, < 2.34.2
coder 2.33.0, < 2.33.8
coder 2.30.0, < 2.32.7

Affected Packages

go github.com/coder/coder no fix
go github.com/coder/coder/v2 fix: 2.29.17, 2.32.7, 2.33.8, 2.34.2
euvd coder fix: 2.29.17, 2.32.7, 2.33.8, 2.34.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerable component is AgentLogLine, a React dashboard component within Coder's web frontend (pkg:go/github.com_coder_coder_v2). Coder employs the ansi-to-html npm library to convert ANSI terminal escape codes embedded in workspace agent log output into displayable HTML. The library exposes an escapeXML option (defaulting to false) that, when disabled, passes raw HTML metacharacters - including angle brackets and tag structures - through the conversion process unchanged. This converted output is then inserted into the DOM using React's dangerouslySetInnerHTML prop, bypassing React's default XSS protection. Server-side sanitization similarly failed to neutralize HTML metacharacters before log lines were stored or transmitted. The root cause class is CWE-79 (Improper Neutralization of Input During Web Page Generation - Stored XSS): attacker-controlled content originating from a stored source (agent log lines) reaches an HTML rendering context without escaping, enabling persistent payload delivery to any user viewing the page.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/coder/coder) PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

Stored XSS requires authenticated workspace-owner access (PR:L), victim must actively view the page (UI:R), and impact crosses into victim session boundary (S:C).

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
SUSE MEDIUM

Primary rating from Vendor (https://github.com/coder/coder).

CVSS VectorVendor: https://github.com/coder/coder

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

Summary

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.

> Note: Exploitation requires a victim to view attacker-controlled agent logs in the dashboard.

Impact

A user who could run a workspace could emit arbitrary HTML into agent logs; when another user, including an administrator, viewed the workspace page, it rendered in their session. Content Security Policy blocked inline scripts but an attacker could still inject a meta refresh redirect, style rules for UI redressing or CSS-based exfiltration or external img beacons. This required workspace-owner access and a victim viewing the page.

Patches

The fix enables escapeXML: true so HTML metacharacters are escaped before DOM insertion.

The fix was backported to all supported release lines:

Release linePatched version
2.34v2.34.2
2.33v2.33.8
2.32v2.32.7
2.29 (ESR)v2.29.17

Workarounds

None.

Resources

  • Fix: #25808

Credits

Coder would like to thank Anthropic's Security Team (ANT-2026-22449) for independently disclosing this issue!

Threat Intelligence Overview

EPSS Score
0.3%
Top 77% exploitable
Prevalence
Medium
self-hosted dev workspace platform, growing enterprise adoption
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy