{"answers":{"affected":"6 open source packages ship an affected version, including github.com/gitpod-io/gitpod, github.com/gitpod-io/gitpod/components/server/go and github.com/gitpod-io/gitpod/components/ws-proxy.","exploited":"There is no known exploitation of CVE-2024-21583 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2024-21583 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-21583 is a medium-severity vulnerability in @gitpod/gitpod-protocol, published on 19 Jul 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-21583 and fix it if it is affected.\n\nWhat it is: CVE-2024-21583 is a medium-severity vulnerability in @gitpod/gitpod-protocol, published on 19 Jul 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-21583 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/gitpod-io/gitpod (Go): affected all versions; no fix listed\n- github.com/gitpod-io/gitpod (Go): affected all versions up to 0.8.0; no fix listed\n- github.com/gitpod-io/gitpod (Go): affected all versions up to 0.8.0; no fix listed\n- github.com/gitpod-io/gitpod/components/server/go (Go): affected all versions; no fix listed\n- github.com/gitpod-io/gitpod/components/ws-proxy (Go): affected all versions; no fix listed\n- github.com/gitpod-io/gitpod/install/installer (Go): affected all versions; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-21583/ (Markdown: https://insights.sbomify.com/CVE-2024-21583/index.md)","id":"CVE-2024-21583","markdown":"https://insights.sbomify.com/CVE-2024-21583/index.md","name":"CVE-2024-21583","record":{"aliases":["GHSA-8pgc-65mj-53h5","GO-2024-2997"],"analysis":{"component_type":"cloud_service","fix_type":"upgrade","impacts":["account_takeover","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Gitpod cloud platform","requires_auth":"low_privilege","summary":"Attackers controlling a subdomain can hijack sessions via cookie tossing, allowing them to perform actions on behalf of victims.","user_interaction":"required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[],"cvss":{"score":4.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N/E:P","version":"3.1"},"cwes":[{"id":"CWE-565","name":"Reliance on Cookies without Validation and Integrity Checking"},{"id":"CWE-15","name":"External Control of System or Configuration Setting"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"github.com/gitpod-io/gitpod vulnerable to Cookie Tossing","id":"CVE-2024-21583","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"other","year":"2024"},"n_packages":6,"n_references":9,"next":{"headline":"Cross-site scripting in Pleasanter","id":"CVE-2024-21584"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/gitpod-io/gitpod","purl":"pkg:golang/github.com/gitpod-io/gitpod","source":"GO-2024-2997"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["0.8.0"],"package":"github.com/gitpod-io/gitpod","purl":null,"source":"GHSA-8pgc-65mj-53h5"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["0.8.0"],"package":"github.com/gitpod-io/gitpod","purl":"pkg:golang/github.com/gitpod-io/gitpod","source":"GHSA-8pgc-65mj-53h5"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/gitpod-io/gitpod/components/server/go","purl":"pkg:golang/github.com/gitpod-io/gitpod/components/server/go","source":"GO-2024-2997"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/gitpod-io/gitpod/components/ws-proxy","purl":"pkg:golang/github.com/gitpod-io/gitpod/components/ws-proxy","source":"GO-2024-2997"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/gitpod-io/gitpod/install/installer","purl":"pkg:golang/github.com/gitpod-io/gitpod/install/installer","source":"GO-2024-2997"}],"prev":{"headline":"Code injection in ComfyUI-Ace-Nodes","id":"CVE-2024-21577"},"products":["@gitpod/gitpod-protocol","github.com/gitpod-io/gitpod/components/server/go/pkg/lib","github.com/gitpod-io/gitpod/components/ws-proxy/pkg/proxy","github.com/gitpod-io/gitpod/install/installer/pkg/components/auth","github.com/gitpod-io/gitpod/install/installer/pkg/components/public-api-server","github.com/gitpod-io/gitpod/install/installer/pkg/components/server"],"published":"2024-07-19","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-31","vendors":["n/a"]},"summary":"Attackers controlling a subdomain can hijack sessions via cookie tossing, allowing them to perform actions on behalf of victims.","url":"https://insights.sbomify.com/CVE-2024-21583/"}