CSRF bypass in Coder through unanchored exemption patterns
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- Tampering
- Confidentiality · integrity · availability
- None · Low · Low
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-352.
Summary
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 is affected. CSRF exemption patterns are matched as unanchored regular expressions, so some API routes skip CSRF token and same-origin checks (CWE-352). An attacker who controls a page on the same site as 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.
Written with Claude Haiku 5.5 from the sources below · 2026-11-21
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| coder | coder | 2.38.0 to before 2.38.6 | 2.38.6 | Patch available | CNA |
| coder | coder | 2.37.0 to before 2.37.10 | 2.37.10 | Patch available | CNA |
| coder | coder | 2.30.0 to before 2.34.18 | 2.34.18 | Patch available | CNA |
| coder | coder | 2.6.0 to before 2.29.26 | 2.29.26 | Patch available | CNA |
| coder | coder | 2.35.0 to before 2.37.0 | 2.37.0 | Patch available | CNA |
- coder Vendorcoder Affected 2.38.0 to before 2.38.6 Fixed in 2.38.6 Patch available CNA
- coder Vendorcoder Affected 2.37.0 to before 2.37.10 Fixed in 2.37.10 Patch available CNA
- coder Vendorcoder Affected 2.30.0 to before 2.34.18 Fixed in 2.34.18 Patch available CNA
- coder Vendorcoder Affected 2.6.0 to before 2.29.26 Fixed in 2.29.26 Patch available CNA
- coder Vendorcoder Affected 2.35.0 to before 2.37.0 Fixed in 2.37.0 Patch available CNA
Remediation
Fixed versions are Coder 2.38.6, 2.37.10, 2.37.0, 2.34.18, and 2.29.26. The sources list no advisory identifier for these fixes.
Written with Claude Haiku 5.5 from the sources below · 2026-11-21
- Fix · CNA coder (coder) Fixed in 2.38.6
- Fix · CNA coder (coder) Fixed in 2.37.10
- Fix · CNA coder (coder) Fixed in 2.34.18
- Fix · CNA coder (coder) Fixed in 2.29.26
- Fix · CNA coder (coder) Fixed in 2.37.0
Timeline
- 2026-11-21 Threatist record created from CVE-2026-134362
- 2026-11-21 Alias added: GHSA-7c5g-8j62-4pg8
- 2026-11-25 CISA SSVC decision points changed
References
More coder vulnerabilities
- TI-2025-37344 AgentAPI exposed user chat history via a DNS rebinding attack CVSS 3.1MEDIUM 6.5
- TI-2026-34071 Coder: PKCS#7 signature bypass in Azure instance identity allows unauthenticated agent token theft CVSS 3.1CRITICAL 9.1
- TI-2026-32394 Coder vulnerable to workspace auto-creation via crafted URL parameters without user consent CVSS 3.1HIGH 8.8
- TI-2026-27585 Code Extension Marketplace has a Zip Slip Path Traversal CVSS 4.0HIGH 8.7
- TI-2024-18523 Coder's OIDC authentication allows email with partially matching domain to register CVSS 3.1HIGH 8.2
- TI-2023-11339 Origin validation error in code-server CVSS 3.1CRITICAL 9.3
Sources
- CVE-2026-134362 · CVE Program
- CVE-2026-134362 · NVD
- FIRST EPSS
- GHSA-7c5g-8j62-4pg8 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences