CVE-2026-55438

Coder's workspace app CORS origin check can be bypassed via UUID-based subdomain spoofing

Published Jul 8, 2026 CVSS 3.1 · 5.8 Medium EPSS < 1% KEV · Not listed
Description
Coder allows organizations to provision remote development environments via Terraform. Prior to versions 2.29.17, 2.32.7, 2.33.8, and 2.34.2, Coder's subdomain-based workspace app proxy allowed the same-owner CORS check to be bypassed. When a workspace-name subdomain segment parsed as a UUID, the workspace was resolved by ID without confirming the URL's username matched the real owner, while the CORS middleware trusted the unverified username in the hostname. Practical exploitation requires subdomain app routing (wildcard hostname) enabled and a victim who visits the attacker's crafted app URL while authenticated. The fix in versions 2.29.17, 2.32.7, 2.33.8, and 2.34.2 validates the subdomain username against the resolved workspace's actual owner and bases the same-owner CORS decision on the authoritative owner identity. No known workarounds are available.

Analysis

AI-generated

Technical impact

Coder’s subdomain‑based workspace app proxy contains a flaw that lets an attacker bypass the same‑owner CORS check when the workspace‑name segment of the subdomain is parsed as a UUID. The proxy then resolves the workspace by that UUID without confirming that the host’s username matches the real owner, and the CORS middleware accepts the unvalidated username in the hostname. This results in the attacker being able to issue arbitrary HTTP requests from the victim’s authenticated session. The weakness is a classic example of CWE‑346, where untrusted data is trusted in a critical security decision.

Affected Systems

The issue is present in the Coder platform (vendor coder) in any deployment running a pre‑patch release: versions older than 2.29.17, 2.32.7, 2.33.8, and 2.34.2. Victims must have subdomain app routing (wildcard hostname) enabled and be authenticated while visiting a crafted URL in order for the vulnerability to be exploitable.

Risk and Exploitability

The CVSS score of 5.8 places the vulnerability in the moderate range, and the EPSS score of less than 1% indicates a low probability of exploitation in the near term. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires that a user visits a malicious URL making it a user‑dependent attack but one that can lead to data exfiltration or unauthorized actions if successful.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Coder platform to version 2.29.17, 2.32.7, 2.33.8, 2.34.2, or later to apply the fixed CORS validation logic.
  • Verify that the workspace subdomain routing usage in your environment is aligned with the patched logic, ensuring that the username portion of the URL matches the actual workspace owner.
  • Monitor web server and application logs for CORS errors that could indicate exploitation attempts.

Generated by OpenCVE AI on August 1, 2026 at 16:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-5wg6-jmq2-53pw Coder's workspace app CORS origin check can be bypassed via UUID-based subdomain spoofing
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Coder
Coder coder
Vendors & Products Coder
Coder coder
Type Values Removed Values Added
Description Coder allows organizations to provision remote development environments via Terraform. Prior to versions 2.29.17, 2.32.7, 2.33.8, and 2.34.2, Coder's subdomain-based workspace app proxy allowed the same-owner CORS check to be bypassed. When a workspace-name subdomain segment parsed as a UUID, the workspace was resolved by ID without confirming the URL's username matched the real owner, while the CORS middleware trusted the unverified username in the hostname. Practical exploitation requires subdomain app routing (wildcard hostname) enabled and a victim who visits the attacker's crafted app URL while authenticated. The fix in versions 2.29.17, 2.32.7, 2.33.8, and 2.34.2 validates the subdomain username against the resolved workspace's actual owner and bases the same-owner CORS decision on the authoritative owner identity. No known workarounds are available.
Title Coder's workspace app CORS origin check can be bypassed via UUID-based subdomain spoofing
Weaknesses CWE-346
References
Metrics cvssV3_1

{'score': 5.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:N/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 8, 2026, 5:10 PM
Reserved
Jun 16, 2026, 9:59 PM
Status
Analyzed
Published
Jul 8, 2026, 1:16 AM
Modified
Jul 8, 2026, 7:38 PM