CVE-2026-126404

MEDIUMCVSS 6.8/10

Last modified

CVE-2026-126404 is a medium-severity vulnerability rated 6.8/10 on the CVSS scale. 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..

Description

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.

Metrics

Weakness Enumeration

Affected Software

Source: CNA advisory (CVE.org). NVD analysis pending.

VendorProductVersions
codercoder>= 2.38.0, < 2.38.4
codercoder>= 2.37.0, < 2.37.8
codercoder>= 2.36.0, < 2.36.11
codercoder>= 2.30.0, < 2.34.16
codercoder>= 2.28.0, < 2.29.24
codercoder>= 2.35.0, < 2.36.0

References

Timeline

Published
Last Modified
Status
Received

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.
How severe is CVE-2026-126404?
CVE-2026-126404 has a CVSS score of 6.8/10 (MEDIUM severity).
How do I fix CVE-2026-126404?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

How Strix Helps

Related CVEs from 2026

Are you affected by CVE-2026-126404?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST