# CVE-2026-134362: Coder from 2.38.0 before 2.38.6 CSRF Bypass via Unanchored Exemption Patterns

> Attackers controlling a same-site page can make signed-in Coder users send forged requests to recreate dev containers or add users to organizations.

- **Severity:** Low 2.3 (`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`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Harmful if only installed:** No
- **Needs a specific call:** No
- **Fix available:** No
- **Published:** 21 Nov 2026
- **Updated:** 25 Nov 2026
- **Also known as:** GHSA-7c5g-8j62-4pg8, GHSA-jvgx-787p-cfmg

## What is CVE-2026-134362?

CVE-2026-134362 is a low-severity cross-site request forgery vulnerability in coder, published on 21 Nov 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

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.

Weakness: CWE-352 (Cross-Site Request Forgery)

## Which versions are affected by CVE-2026-134362?

5 open source packages ship an affected version, including github.com/coder/coder/v2.

An affected version is exposed as installed. No special setting or call is needed.


| Package | Ecosystem | PURL | Affected | Fixed in |
| --- | --- | --- | --- | --- |
| `github.com/coder/coder/v2` | Go | `pkg:golang/github.com/coder/coder/v2` | From 2.30.0 | 2.34.18 |
| `github.com/coder/coder/v2` | Go | `pkg:golang/github.com/coder/coder/v2` | From 2.35.0 | 2.37.0 |
| `github.com/coder/coder/v2` | Go | `pkg:golang/github.com/coder/coder/v2` | From 2.37.0 | 2.37.10 |
| `github.com/coder/coder/v2` | Go | `pkg:golang/github.com/coder/coder/v2` | From 2.38.0 | 2.38.6 |
| `github.com/coder/coder/v2` | Go | `pkg:golang/github.com/coder/coder/v2` | From 2.6.0 | 2.29.26 |

## How do I fix CVE-2026-134362?

Upgrade github.com/coder/coder/v2 to a fixed version for your release line: 2.38.6, 2.37.10, 2.37.0 or 2.34.18.

## Is CVE-2026-134362 being exploited?

There is no known exploitation of CVE-2026-134362 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-134362 and fix it if it is affected.

What it is: CVE-2026-134362 is a low-severity cross-site request forgery vulnerability in coder, published on 21 Nov 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2026-134362 in the wild and no public exploit code.
Exposure: An affected version is exposed as installed. No special setting or call is needed.

Affected packages and fixed versions:
- github.com/coder/coder/v2 (Go): affected from 2.30.0; fixed in 2.34.18
- github.com/coder/coder/v2 (Go): affected from 2.35.0; fixed in 2.37.0
- github.com/coder/coder/v2 (Go): affected from 2.37.0; fixed in 2.37.10
- github.com/coder/coder/v2 (Go): affected from 2.38.0; fixed in 2.38.6
- github.com/coder/coder/v2 (Go): affected from 2.6.0; fixed in 2.29.26

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-134362/ (Markdown: https://insights.sbomify.com/CVE-2026-134362/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-134362
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-134362
- OSV: https://osv.dev/vulnerability/CVE-2026-134362

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-134362/
Summaries are generated and may contain mistakes; the official description above is the record.
