MediumVulnerability
GHSA-x9qq-2qh5-8rxf: Coder's sub-agent app registration bypasses template port-sharing policy enforcement
- Identifiers
- CVE-2026-55432GHSA-x9qq-2qh5-8rxf
- Published
- Record updated
- Affected
- github.com/coder/coder/v2 < 2.29.17, fixed in 2.29.17, released June 11, 2026, 24 days before disclosure
- github.com/coder/coder/v2 >= 2.30.0, < 2.32.7, fixed in 2.32.7, released June 11, 2026, 25 days before disclosure
- github.com/coder/coder/v2 >= 2.33.0, < 2.33.8, fixed in 2.33.8, released June 11, 2026, 25 days before disclosure
- and 1 more
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.3%
Summary
The `CreateSubAgent` RPC in Coder did not check a requested app sharing level against the template's `MaxPortSharingLevel` before saving workspace apps. A workspace owner with an agent token could register a sub-agent app as `PUBLIC` even when the maximum was `owner`, exposing it to unauthenticated users through the wildcard app domain. The issue affects only deployments using Enterprise port-sharing policy and wildcard app hostnames.
Mitigation
Fixed in v2.34.2 (2.34 line), v2.33.8 (2.33), v2.32.7 (2.32) and v2.29.17 (2.29 ESR). The fix clamps the sub-agent app sharing level to the template's `MaxPortSharingLevel`. Workaround: disable wildcard app hostnames by unsetting `CODER_WILDCARD_ACCESS_URL` to block subdomain-based app routing.
Related items
- HighGHSA-qx49-fqc8-xw99: Model Context Protocol Python SDK: OAuth client could send credentials to an authorization server chosen by the MCP serverSame vendor · GitHub Advisory Database
- HighCVE-2026-88968: Claude Code Edit tool symlink race overwrites files outside workspace on macOSSame vendor · NVD/CVE Database
- HighCVE-2026-88066: Claude Desktop on Windows git.exe execution via search pathSame vendor · NVD/CVE Database
- HighCVE-2026-62331: praktor path traversal via Telegram document upload filenamesSame vendor · NVD/CVE Database
- MediumGHSA-w4fh-qvv9-3v23: Model Context Protocol Python SDK: Server bearer-token authentication accepts tokens issued for a different resource serverSame vendor · GitHub Advisory Database