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

- Severity: Medium 4.1 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.60%, higher than 49% of CVEs (2026-12-01)
- Published: 2024-07-19T05:00:01.569Z
- Modified: 2026-06-17T07:09:44.457Z
- Also known as: GHSA-8pgc-65mj-53h5, GO-2024-2997
- Weaknesses: CWE-15, CWE-565
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- github.com/gitpod-io/gitpod/components/server/go/pkg/lib: before main-gha.27122
- github.com/gitpod-io/gitpod/components/ws-proxy/pkg/proxy: before main-gha.27122
- github.com/gitpod-io/gitpod/install/installer/pkg/components/auth: before main-gha.27122
- github.com/gitpod-io/gitpod/install/installer/pkg/components/public-api-server: before main-gha.27122
- github.com/gitpod-io/gitpod/install/installer/pkg/components/server: before main-gha.27122
- @gitpod/gitpod-protocol: before 0.1.5-main-gha.27122
- github.com/gitpod-io/gitpod (Go): up to 0.8.0; all versions
- github.com/gitpod-io/gitpod/components/server/go (Go): all versions
- github.com/gitpod-io/gitpod/components/ws-proxy (Go): all versions
- github.com/gitpod-io/gitpod/install/installer (Go): all versions

## Every score

- snyk: CVSS:3.1 4.1 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N/E:P`
- GitHub: CVSS:3.1 4.1 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N`

## References

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

## Sources

- CVE List: [CVE-2024-21583](https://www.cve.org/CVERecord?id=CVE-2024-21583), CVE Terms of Use, modified 2024-10-31
- GitHub Advisory Database: [GHSA-8pgc-65mj-53h5](https://github.com/advisories/GHSA-8pgc-65mj-53h5), CC-BY-4.0, modified 2024-10-31
- Go Vulnerability Database: [GO-2024-2997](https://pkg.go.dev/vuln/GO-2024-2997), CC-BY-4.0, modified 2024-09-06
- NVD: [CVE-2024-21583](https://nvd.nist.gov/vuln/detail/CVE-2024-21583), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-21583 · Whole record: https://cve.day/CVE-2024-21583.json · Rebuilt by cve.day 2026-11-25T22:58:43.054Z
