Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLure signed-in user to same-site page
-
DeliveryDeliver malicious workspace app or shared port
-
ExploitForged POST matches unanchored CSRF exemption
-
ExecutionRequest skips CSRF and same-origin checks
-
ImpactRecreate dev container or add derp user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Anti-CSRF tokens, SameSite cookies
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires ALL of the following: (1) the attacker controls a page served same-site with the Coder deployment - e.g. a workspace app or a shared port on the wildcard access URL; (2) the victim is already signed in to Coder and loads that page (UI:P); and (3) the forged request is a simple POST to a route whose path contains an unanchored exemption pattern such as 'api/v2/workspaceagents' or the substring 'derp' (per coderd/httpmw/csrf.go). Specific limiting factors: requests needing a CORS preflight (PUT, DELETE) are blocked in every configuration because Coder never allows credentialed cross-origin requests with those methods, so user roles cannot be changed; the privileged outcome (adding a derp-named user to an org) requires the victim to be an Owner or User Admin. The default deployment setting --samesite-auth-cookie lax confines the attack to same-site pages; deployments started with --samesite-auth-cookie none can be attacked from any website. Affected versions: 2.6.0-<2.29.26, 2.30.0-<2.34.18, 2.35.0-<2.37.10, 2.38.0-<2.38.6. Fixed in 2.29.26, 2.34.18, 2.37.10, 2.38.6, and mainline 2.39.0; release lines 2.30-2.33, 2.35 and 2.36 are end-of-life and will not be patched (upgrade to a patched release). Workaround per vendor: keep the default --samesite-auth-cookie lax and avoid opening untrusted workspace apps or shared ports while signed in. |
| Impact | This is a genuinely low-priority issue, and the signals agree. The input CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:L/VA:L) yields a base score of 2.3 (Low), and vuln.today assigns the 'monitor' decision label. There is no KEV listing (not confirmed actively exploited) and no EPSS score was provided, so widespread-exploitation probability cannot be quantified from the data given; the absence of EPSS is a data gap, not evidence of low likelihood. No public exploit identified at time of analysis - the references are a GHSA advisory and the fix PR, not working exploit code. The high attack complexity (AC:H) and present attack requirement (AT:P) are well supported by the advisory: the attacker must control a page that is same-site with the Coder deployment (e.g. a workspace app or shared port on the wildcard access URL) AND the victim must be signed in and load that page (UI:P). Impact is bounded - only credential-less POST routes are reachable (PUT/DELETE are blocked by CORS preflight in every configuration), roles cannot be changed, and the worst outcomes are dev-container recreation (local data loss for data not on mounted volumes) and, only if the victim is an Owner or User Admin, adding a user whose name contains 'derp' to an organization. These limited integrity/availability effects justify VI:L/VA:L and VC:N. Net: a real but low-severity same-site CSRF, appropriately rated 'monitor' rather than an emergency. |
| Exploit ScenarioDerived | An attacker hosts or compromises a page served same-site with the Coder deployment - such as a workspace app or a shared port on the wildcard access URL - and lures a signed-in Coder user to open it. The page auto-submits a forged POST that matches an unanchored CSRF exemption, recreating the victim's dev container (destroying non-mounted data) or, if the victim is an Owner/User Admin, adding a 'derp'-named user to an organization. No public exploit code is identified; exploitation requires the victim to be authenticated and to load the attacker's same-site page. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 21, 2026
Cross-site request forgery in Coder's coderd middleware allows a same-site attacker-controlled page to make a signed-in user's browser send forged POST requests to API routes whose paths match unanchored CSRF exemption patterns. Affected deployments include Coder 2.6.0 before 2.29.26, 2.30.0 before 2.34.18, 2.35.0 before 2.37.10, and 2.38.0 before 2.38.6; successful exploitation can recreate a user's dev container or, when the victim is an Owner or User Admin, add a user whose name contains 'derp' to an organization. The issue is low severity, requires victim interaction and a same-site page under the default SameSite=Lax setting, is blocked for PUT/DELETE by CORS preflight, and no public exploit was identified at time of analysis.
RemediationAI
Vendor-released patches are available in Coder 2.29.26, 2.34.18, 2.37.10, 2.38.6, and 2.39.0; upgrade to the fixed release for your line. Deployments on end-of-life lines 2.30 through 2.33, 2.35, and 2.36 will not receive a direct patch and should upgrade to a patched release. Per the vendor, keep the default --samesite-auth-cookie lax and avoid opening untrusted workspace apps or shared ports while signed in to Coder. The fix anchors the CSRF exemption patterns in coderd/httpmw/csrf.go (PR https://github.com/coder/coder/pull/31125); advisory: https://github.com/coder/coder/security/advisories/GHSA-jvgx-787p-cfmg and https://www.vulncheck.com/advisories/coder-from-2.38.0-before-2.38.6-csrf-bypass-via-unanchored-exemption-patterns.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Coder's coderd HTTP middleware implements CSRF protection by exempting routes used by agents, workspace proxies, and other non-browser clients from CSRF token and same-origin checks. In coderd/httpmw/csrf.go the exemptions were written with shell-style wildcards such as derp/* and api/v2/workspaceagents/* but were compiled as unanchored regular expressions. Consequently, any request path containing the substring derp or api/v2/workspaceagents was treated as exempt, including routes the dashboard calls with a session cookie (for example workspaceagent routes used to recreate or delete a dev container) and user or organization member routes for names containing derp. The advisory maps this to CWE-352 (cross-site request forgery) and CWE-625 (permissive regular expression). The patch anchors each exemption so it matches only its intended route, and user-callable session-cookie routes are no longer exempt. Default SameSite=Lax confines forged requests to same-site pages, while --samesite-auth-cookie none permits any website; CORS preflight blocks PUT and DELETE, so only simple POST requests are relevant.
Know when Coder gets its next vulnerability
- 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
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
AV:N (browser-delivered) but AC:H because a same-site attacker page is required, UI:R since the victim must load it; C:N, with I:L/A:L for container recreation and derp-user addition.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
Coder 2.6.0 before 2.29.26, 2.30.0 before 2.34.18, 2.35.0 before 2.37.10, and 2.38.0 before 2.38.6 contains a cross-site request forgery vulnerability because CSRF exemption patterns in coderd/httpmw/csrf.go are matched as unanchored regular expressions, letting affected API routes skip CSRF token and same-origin checks. Attackers controlling a page same-site with the deployment can make signed-in users' browsers send forged POST requests that recreate dev containers or add users whose names contain derp to organizations.
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 Request Forgery exploits the automatic credential inclusion behavior of web browsers.
Coder allows organizations to provision remote development environments via Terraform. Rated high severity (CVSS 8.1), t
Coder allows organizations to provision remote development environments via Terraform. Prior to 2.26.5, 2.27.7, and 2.28
code-server is vulnerable to Inefficient Regular Expression Complexity. Rated high severity (CVSS 7.5), this vulnerabili
Versions of the package code-server before 4.10.1 are vulnerable to Missing Origin Validation in WebSockets handshakes.
Coder deployments configured with AWS IAM database authentication (CODER_PG_AUTH=awsiamrds) can leak a short-lived Postg
Credential disclosure in Coder's web dashboard (CVSS 4.0 base 8.7, High) lets an authenticated low-privileged attacker w
Credential theft in Coder (before 2.29.20, 2.33.0 through 2.33.11, 2.34.0 through 2.34.7, and 2.35.0 through 2.35.3) let
Improper authorization in Coder's external agent credentials endpoint lets authenticated users who hold only workspace r
Session-token leakage in Coder's `coder open app` CLI command lets a malicious template author steal the credentials of
Authenticated Coder users who control a modified workspace agent can redirect the control plane's workspace-agent API re
Coder deployments that run workspace agents on Google Compute Engine with GCP instance-identity authentication accept re
Coder allows oragnizations to provision remote development environments via Terraform. Rated high severity (CVSS 8.2), t
EUVD-2026-132284
GHSA-7c5g-8j62-4pg8
NVD
CVE.org
EPSS
Exploit-DB