CVE-2024-21583: github.com/gitpod-io/gitpod vulnerable to Cookie Tossing
4.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.29695%
CWE
Published
7/19/2024
Updated
10/31/2024
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/gitpod-io/gitpod | go | <= 0.8.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from missing __Host- prefix in cookie names. The CookieNameFromDomain function was directly responsible for generating insecure cookie names (evidenced by pre-patch code returning '_'+derived+'jwt2'). The commit da1053e explicitly fixes this by adding the __Host- prefix. This function's output directly controlled the cookie's security attributes, making it the root cause of the cookie tossing vulnerability.