Home › CVE › Identity & auth
CVE-2026-126404 — coder
One of 4 coder vulnerabilities published together by NVD: our article covers all of them.
Identity & authVulnerabilitiesSummary
Coder 2.28.0 before 2.29.24, 2.30.0 before 2.34.16, 2.35.0 before 2.36.11, 2.37.0 before 2.37.8, and 2.38.0 before 2.38.4 does not restrict new API keys to the creating token's scopes, allow list, or expiry. A scoped API key or OAuth2 token holding key-creation permission can call POST /api/v2/users/{user}/keys/tokens to mint longer-lived coder:all keys, gaining the user's full privileges.
Severity breakdown
High · 7.6
An attacker with a normal user account can exploit this over the network, without any user action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- high (only works under specific conditions)
- Special conditions
- only in some setups or conditions
- Login needed
- yes, a normal user account
- User action needed
- no
- Impact
- high on confidentiality and integrity, none on availability
- Impact on other systems
- none
Weakness
- CWE-266: Incorrect Privilege Assignment
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| coder | ≥ 2.38.0, < 2.38.4 | 2.38.4 |
| coder | ≥ 2.37.0, < 2.37.8 | 2.37.8 |
| coder | ≥ 2.36.0, < 2.36.11 | 2.36.11 |
| coder | ≥ 2.30.0, < 2.34.16 | 2.34.16 |
| coder | ≥ 2.28.0, < 2.29.24 | 2.29.24 |
| coder | ≥ 2.35.0, < 2.36.0 | 2.36.0 |
References by type
Vendor advisories
Other references
Affected
- coder
What to do
- Check whether you run an affected product or version and apply the vendor's update or mitigation.
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-126404?
Coder 2.28.0 before 2.29.24, 2.30.0 before 2.34.16, 2.35.0 before 2.36.11, 2.37.0 before 2.37.8, and 2.38.0 before 2.38.4 does not restrict new API keys to the creating token's scopes, allow list, or expiry. A scoped API key or OAuth2 token holding key-creation permission can call POST /api/v2/users/{user}/keys/tokens to mint longer-lived coder:all keys, gaining the user's full privileges. Weakness type: Incorrect Privilege Assignment (CWE-266).
How severe is CVE-2026-126404?
CVE-2026-126404 has a CVSS 4.0 base score of 7.6 (high), from the CNA (vulncheck.com). An attacker with a normal user account can exploit this over the network, without any user action, but only under specific conditions.
Is CVE-2026-126404 being exploited?
Not as far as is known: CVE-2026-126404 is not in CISA's Known Exploited Vulnerabilities catalog as of November 26, 2026. EPSS estimates a 0.3% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-126404?
coder ≥ 2.38.0, < 2.38.4 (fixed in 2.38.4); coder ≥ 2.37.0, < 2.37.8 (fixed in 2.37.8); coder ≥ 2.36.0, < 2.36.11 (fixed in 2.36.11); coder ≥ 2.30.0, < 2.34.16 (fixed in 2.34.16); and more, listed on this page.
How do I fix CVE-2026-126404?
Update to a fixed release: coder 2.38.4; coder 2.37.8; coder 2.36.11.