CVE-2026-137548 in Coder
Summary
by MITRE • 11/26/2026
Coder before 2.29.27, 2.30.0 before 2.34.19, 2.35.0 before 2.37.11, and 2.38.0 before 2.38.7 does not validate the URL scheme of the agent-supplied uri field in app status updates, which the dashboard renders as a clickable link. An attacker holding a workspace agent token, including a prompt-injected AI agent, can show workspace or task viewers links that send them to phishing sites or non-web applications.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Analysis
by VulDB Data Team • 11/26/2026
The vulnerability identified affects multiple versions of Coder, specifically releases prior to 2.29.27, 2.30.x before 2.34.19, 2.35.x before 2.37.11, and 2.38.x before 2.38.7. This security flaw stems from an insufficient validation of the URL scheme within the agent-supplied uri field during app status updates. The Coder dashboard renders these URLs as clickable links for workspace or task viewers without enforcing strict protocol restrictions. Consequently, this lack of sanitization allows malicious actors to inject arbitrary Uniform Resource Identifiers that do not conform to standard web protocols such as HTTP or HTTPS.
An attacker possessing a valid workspace agent token can exploit this flaw by manipulating the app status update mechanism. This includes scenarios where an AI agent has been subjected to prompt injection attacks, effectively turning legitimate automation tools into vectors for exploitation. By supplying a URI with a dangerous scheme, such as file://, javascript:, or data: protocols, the attacker causes the dashboard to render content that can lead users away from secure web contexts. The primary operational impact is the facilitation of phishing campaigns and unauthorized local resource access. Users clicking these links may be directed to malicious external sites designed to steal credentials or deliver malware, or they may trigger non-web applications on their local machine, potentially leading to further system compromise depending on associated protocol handlers installed on the client device.
This vulnerability aligns with CWE-20 Improper Input Validation and CWE-79 Cross-site Scripting if the rendered content allows for script execution through specific data URIs. In terms of offensive security frameworks, this behavior corresponds to ATT&CK technique T1566 Phishing via Link Injection, where attackers use trusted platforms to distribute malicious links that bypass user skepticism due to their origin from a legitimate application interface. The exploitation relies on the trust users place in the Coder dashboard UI, making social engineering elements highly effective when combined with this technical flaw.
To mitigate this risk, organizations must immediately upgrade Coder to version 2.38.7 or later for the 2.38 branch, 2.37.11 or later for the 2.35 branch, 2.34.19 or later for the 2.30 branch, and 2.29.27 or later for older releases. These updated versions implement strict validation logic that restricts accepted URL schemes to safe web protocols only. Until an upgrade is performed, administrators should enforce network-level controls such as proxy filtering to block outbound connections from agent processes to non-standard ports or suspicious domains. Additionally, implementing Content Security Policy headers within the dashboard interface can help mitigate some rendering risks by restricting resource loading sources. Regular auditing of workspace configurations and monitoring for anomalous app status updates can also aid in early detection of exploitation attempts involving prompt-injected agents or compromised service accounts.