Description
Coder allows organizations to provision remote development environments via Terraform. Prior to versions 2.29.7, 2.32.7, 2.33.8, and 2.34.2, the workspace app proxy resolves the target app from `httpapi.RequestHost()` which prefers the `X-Forwarded-Host` header over the real `Host` header. No middleware strips `X-Forwarded-Host` before routing and the header is not browser-forbidden so client-side JavaScript can set it on `fetch()` calls. Practical exploitation requires subdomain app routing (wildcard hostname) enabled, a victim who visits the attacker's shared app and a deployment whose upstream proxy does not strip `X-Forwarded-Host`. The fix in versions 2.29.7, 2.32.7, 2.33.8, and 2.34.2 trusts `X-Forwarded-Host` only from configured trusted proxies and otherwise resolves the routing host from the verified request host. As a workaround, place an upstream reverse proxy that strips or overwrites `X-Forwarded-Host` on untrusted requests.
Published: 2026-07-08
Score: 5.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability allows an attacker to manipulate the X-Forwarded-Host HTTP header in client-side JavaScript, causing the workspace app proxy to resolve the target application based on this header without stripping or validating it. A malicious user can steer the proxy to route traffic to an arbitrary subdomain of the same deployment. This behavior can cause a user on one tenant’s application to read or modify data that belongs to another tenant, compromising confidentiality and potentially integrity. The weakness is represented by missing input validation (CWE‑345) and inappropriate access control (CWE‑441).

Affected Systems

The product affected is Coder by Coder. Versions earlier than 2.29.7, 2.32.7, 2.33.8, and 2.34.2 are vulnerable. Deployments using any of these vulnerable versions with subdomain app routing enabled are at risk.

Risk and Exploitability

The CVSS score of 5.8 reflects a moderate severity. The EPSS score of <1% indicates a very low but non‑zero likelihood of exploitation, and the vulnerability is not listed in the CISA KEV catalog. Practical exploitation requires three conditions: subdomain app routing must be enabled; a victim must visit an attacker‑controlled shared application; and the upstream proxy in the chain must not strip the X-Forwarded-Host header. The attack vector is remote and occurs via a malicious client‑side script that sets the header, without needing local privileges. Once executed the attacker can read or modify cross‑tenant data within the same deployment.

Generated by OpenCVE AI on July 28, 2026 at 09:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Coder to at least version 2.29.7 (or the corresponding newer releases 2.32.7, 2.33.8, or 2.34.2) to apply the official fix.
  • Deploy an upstream reverse proxy that strips or overwrites X-Forwarded-Host on untrusted requests.
  • As a temporary containment step, disable or restrict subdomain app routing until the patch or reverse‑proxy workaround is in place.

Generated by OpenCVE AI on July 28, 2026 at 09:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-5g4w-3vw9-478w Coder's subdomain workspace app routing trusts unauthenticated X-Forwarded-Host header, enabling cross-app data access
History

Wed, 08 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 08 Jul 2026 02:45:00 +0000

Type Values Removed Values Added
First Time appeared Coder
Coder coder
Vendors & Products Coder
Coder coder

Wed, 08 Jul 2026 01:00:00 +0000

Type Values Removed Values Added
Description Coder allows organizations to provision remote development environments via Terraform. Prior to versions 2.29.7, 2.32.7, 2.33.8, and 2.34.2, the workspace app proxy resolves the target app from `httpapi.RequestHost()` which prefers the `X-Forwarded-Host` header over the real `Host` header. No middleware strips `X-Forwarded-Host` before routing and the header is not browser-forbidden so client-side JavaScript can set it on `fetch()` calls. Practical exploitation requires subdomain app routing (wildcard hostname) enabled, a victim who visits the attacker's shared app and a deployment whose upstream proxy does not strip `X-Forwarded-Host`. The fix in versions 2.29.7, 2.32.7, 2.33.8, and 2.34.2 trusts `X-Forwarded-Host` only from configured trusted proxies and otherwise resolves the routing host from the verified request host. As a workaround, place an upstream reverse proxy that strips or overwrites `X-Forwarded-Host` on untrusted requests.
Title Coder's subdomain workspace app routing trusts unauthenticated X-Forwarded-Host header, enabling cross-app data access
Weaknesses CWE-345
CWE-441
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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-08T17:10:40.949Z

Reserved: 2026-06-16T21:59:57.017Z

Link: CVE-2026-55430

cve-icon Vulnrichment

Updated: 2026-07-08T16:57:13.571Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-23T13:00:13Z

Weaknesses
  • CWE-345

    Insufficient Verification of Data Authenticity

  • CWE-441

    Unintended Proxy or Intermediary ('Confused Deputy')