# CVE-2024-21583: github.com/gitpod-io/gitpod vulnerable to Cookie Tossing

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.1
- **CVSS:** 4.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N/E:P`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: None; Availability impact: None; E: P
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.89% (percentile 57, 2026-11-26)
- **CWE:** CWE-15
- **Aliases:** GHSA-8pgc-65mj-53h5, GO-2024-2997
- **Published:** 2024-07-19T05:00:01.569Z
- **Modified:** 2026-06-17T07:09:44.457Z

## Who should check

- Projects that depend on Go package github.com/gitpod-io/gitpod (\<= 0.8.0)
- Projects that depend on Go package github.com/gitpod-io/gitpod/components/server/go
- Projects that depend on Go package github.com/gitpod-io/gitpod/components/ws-proxy
- Projects that depend on Go package github.com/gitpod-io/gitpod/install/installer
- Anyone running github.com/gitpod-io/gitpod/components/server/go/pkg/lib \< main-gha.27122
- Anyone running github.com/gitpod-io/gitpod/components/ws-proxy/pkg/proxy \< main-gha.27122
- Anyone running github.com/gitpod-io/gitpod/install/installer/pkg/components/auth \< main-gha.27122
- Anyone running github.com/gitpod-io/gitpod/install/installer/pkg/components/public-api-server \< main-gha.27122

## Description

Versions of the package github.com/gitpod-io/gitpod/components/server/go/pkg/lib before main-gha.27122; versions of the package github.com/gitpod-io/gitpod/components/ws-proxy/pkg/proxy before main-gha.27122; versions of the package github.com/gitpod-io/gitpod/install/installer/pkg/components/auth before main-gha.27122; versions of the package github.com/gitpod-io/gitpod/install/installer/pkg/components/public-api-server before main-gha.27122; versions of the package github.com/gitpod-io/gitpod/install/installer/pkg/components/server before main-gha.27122; versions of the package @gitpod/gitpod-protocol before 0.1.5-main-gha.27122 are vulnerable to Cookie Tossing due to a missing \_\_Host- prefix on the \_gitpod\_io\_jwt2\_ session cookie. This allows an adversary who controls a subdomain to set the value of the cookie on the Gitpod control plane, which can be assigned to an attacker’s own JWT so that specific actions taken by the victim (such as connecting a new Github organization) are actioned by the attackers session.

## Affected and fixed versions

- Go `github.com/gitpod-io/gitpod`: affected \<= 0.8.0; fixed no fix listed yet (osv)
- Go `github.com/gitpod-io/gitpod/components/server/go`: affected see advisory; fixed no fix listed yet (osv)
- Go `github.com/gitpod-io/gitpod/components/ws-proxy`: affected see advisory; fixed no fix listed yet (osv)
- Go `github.com/gitpod-io/gitpod/install/installer`: affected see advisory; fixed no fix listed yet (osv)
- github.com/gitpod-io/gitpod/components/server/go/pkg/lib: \< main-gha.27122 (cvelist)
- github.com/gitpod-io/gitpod/components/ws-proxy/pkg/proxy: \< main-gha.27122 (cvelist)
- github.com/gitpod-io/gitpod/install/installer/pkg/components/auth: \< main-gha.27122 (cvelist)
- github.com/gitpod-io/gitpod/install/installer/pkg/components/public-api-server: \< main-gha.27122 (cvelist)
- github.com/gitpod-io/gitpod/install/installer/pkg/components/server: \< main-gha.27122 (cvelist)
- @gitpod/gitpod-protocol: \< 0.1.5-main-gha.27122 (cvelist)

## Mitigation

- Upgrade @gitpod/gitpod-protocol to 0.1.5-main-gha.27122 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-21583. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-21583.md
Affected: github.com/gitpod-io/gitpod <= 0.8.0; github.com/gitpod-io/gitpod/components/server/go; github.com/gitpod-io/gitpod/components/ws-proxy; github.com/gitpod-io/gitpod/install/installer
Fixed in: @gitpod/gitpod-protocol 0.1.5-main-gha.27122

Steps:
1. Search this machine and project for github.com/gitpod-io/gitpod (Go), github.com/gitpod-io/gitpod/components/server/go (Go), github.com/gitpod-io/gitpod/components/ws-proxy (Go), github.com/gitpod-io/gitpod/install/installer (Go), github.com/gitpod-io/gitpod/components/server/go/pkg/lib, github.com/gitpod-io/gitpod/components/ws-prox…: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-21583 being exploited?

There is no confirmed exploitation: CVE-2024-21583 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.89% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-21583?

Medium: CVSS 4.1 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2024-21583?

github.com/gitpod-io/gitpod \<= 0.8.0; github.com/gitpod-io/gitpod/components/server/go; github.com/gitpod-io/gitpod/components/ws-proxy; github.com/gitpod-io/gitpod/install/installer.

### Is there a fix for CVE-2024-21583?

Yes. Fixed in @gitpod/gitpod-protocol 0.1.5-main-gha.27122. Upgrade @gitpod/gitpod-protocol to 0.1.5-main-gha.27122 or later.

### How do I check if I'm affected by CVE-2024-21583?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-21583>
- patch: <https://github.com/gitpod-io/gitpod/pull/19973>
- patch: <https://github.com/gitpod-io/gitpod/commit/da1053e1013f27a56e6d3533aa251dbd241d0155>
- other: <https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGITPODIOGITPODCOMPONENTSSERVERGOPKGLIB-7452074>
- other: <https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGITPODIOGITPODCOMPONENTSWSPROXYPKGPROXY-7452075>
- other: <https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGITPODIOGITPODINSTALLINSTALLERPKGCOMPONENTSAUTH-7452076>
- other: <https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGITPODIOGITPODINSTALLINSTALLERPKGCOMPONENTSPUBLICAPISERVER-7452077>
- other: <https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGITPODIOGITPODINSTALLINSTALLERPKGCOMPONENTSSERVER-7452078>
- other: <https://security.snyk.io/vuln/SNYK-JS-GITPODGITPODPROTOCOL-7452079>
- other: <https://app.safebase.io/portal/71ccd717-aa2d-4a1e-942e-c768d37e9e0c/preview?product=%5B%E2%80%A6%5D942e-c768d37e9e0c&tcuUid=1d505bda-9a38-4ca5-8724-052e6337f34d>
- other: <https://github.com/gitpod-io/gitpod>
- other: <https://pkg.go.dev/vuln/GO-2024-2997>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-21583>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-8pgc-65mj-53h5> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2024-2997> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-21583> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-21583>
