Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as workspace owner
-
DeliveryConfigure agent to emit HTML-injected log lines
-
ExploitWait for privileged user (e.g., admin) to view workspace dashboard
-
Executionansi-to-html renders raw HTML into DOM via dangerouslySetInnerHTML
-
PersistInjected HTML executes in victim browser session
-
ImpactExfiltrate 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
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).
Primary rating from Vendor (https://github.com/coder/coder).
CVSS VectorVendor: https://github.com/coder/coder
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:
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allVendor 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 |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-42150
GHSA-7qw2-f75v-62f7
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB