CVE-2024-21583
github.com/gitpod-io/gitpod vulnerable to Cookie Tossing
Also known as GHSA-8pgc-65mj-53h5, GO-2024-2997
Mitigation
- Upgrade @gitpod/gitpod-protocol to 0.1.5-main-gha.27122 or later.
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
Vulnerability facts
- 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
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- 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:POpen in CVSS calculator
Show all 9 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
- EPSS
- 0.89% chance of exploitation in 30 days (percentile 57, 2026-11-26)
- CWE
- CWE-15
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/gitpod-io/gitpod | <= 0.8.0 | — | osv |
| Go github.com/gitpod-io/gitpod/components/server/go | — | — | osv |
| Go github.com/gitpod-io/gitpod/components/ws-proxy | — | — | osv |
| Go github.com/gitpod-io/gitpod/install/installer | — | — | 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 |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Vendor advisories
Patches
Other
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGITPODIOGITPODCOMPONENTSSERVERGOPKGLIB-7452074
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGITPODIOGITPODCOMPONENTSWSPROXYPKGPROXY-7452075
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGITPODIOGITPODINSTALLINSTALLERPKGCOMPONENTSAUTH-7452076
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGITPODIOGITPODINSTALLINSTALLERPKGCOMPONENTSPUBLICAPISERVER-7452077
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGITPODIOGITPODINSTALLINSTALLERPKGCOMPONENTSSERVER-7452078
- https://security.snyk.io/vuln/SNYK-JS-GITPODGITPODPROTOCOL-7452079
- https://app.safebase.io/portal/71ccd717-aa2d-4a1e-942e-c768d37e9e0c/preview?product=%5B%E2%80%A6%5D942e-c768d37e9e0c&tcuUid=1d505bda-9a38-4ca5-8724-052e6337f34d
- https://github.com/gitpod-io/gitpod
- https://pkg.go.dev/vuln/GO-2024-2997
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.