{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2023-0957",
        "ASSIGNER": "report@snyk.io",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "An issue was discovered in Gitpod versions prior to release-2022.11.2.16. There is a Cross-Site WebSocket Hijacking (CSWSH) vulnerability that allows attackers to make WebSocket connections to the Gitpod JSONRPC server using a victim\u2019s credentials, because the Origin header is not restricted. This can lead to the extraction of data from workspaces, to a full takeover of the workspace."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-1385 Missing Origin Validation in WebSockets",
                        "cweId": "CWE-1385"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "Gitpod",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "Gitpod",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "<",
                                            "version_name": "0",
                                            "version_value": "2022.11.2"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://app.safebase.io/portal/71ccd717-aa2d-4a1e-942e-c768d37e9e0c/preview?product=default&orgId=71ccd717-aa2d-4a1e-942e-c768d37e9e0c&tcuUid=1d505bda-9a38-4ca5-8724-052e6337f34d",
                "refsource": "MISC",
                "name": "https://app.safebase.io/portal/71ccd717-aa2d-4a1e-942e-c768d37e9e0c/preview?product=default&orgId=71ccd717-aa2d-4a1e-942e-c768d37e9e0c&tcuUid=1d505bda-9a38-4ca5-8724-052e6337f34d"
            },
            {
                "url": "https://github.com/gitpod-io/gitpod/releases/tag/release-2022.11.2",
                "refsource": "MISC",
                "name": "https://github.com/gitpod-io/gitpod/releases/tag/release-2022.11.2"
            },
            {
                "url": "https://github.com/gitpod-io/gitpod/pull/16378",
                "refsource": "MISC",
                "name": "https://github.com/gitpod-io/gitpod/pull/16378"
            },
            {
                "url": "https://github.com/gitpod-io/gitpod/pull/16405",
                "refsource": "MISC",
                "name": "https://github.com/gitpod-io/gitpod/pull/16405"
            },
            {
                "url": "https://github.com/gitpod-io/gitpod/commit/12956988eec0031f42ffdfa3bdc3359f65628f9f",
                "refsource": "MISC",
                "name": "https://github.com/gitpod-io/gitpod/commit/12956988eec0031f42ffdfa3bdc3359f65628f9f"
            },
            {
                "url": "https://github.com/gitpod-io/gitpod/commit/673ab6856fa04c13b7b1f2a968e4d090f1d94e4f",
                "refsource": "MISC",
                "name": "https://github.com/gitpod-io/gitpod/commit/673ab6856fa04c13b7b1f2a968e4d090f1d94e4f"
            },
            {
                "url": "https://snyk.io/blog/gitpod-remote-code-execution-vulnerability-websockets/",
                "refsource": "MISC",
                "name": "https://snyk.io/blog/gitpod-remote-code-execution-vulnerability-websockets/"
            }
        ]
    },
    "credits": [
        {
            "lang": "en",
            "value": "Elliot Ward, Snyk"
        }
    ],
    "impact": {
        "cvss": [
            {
                "attackVector": "NETWORK",
                "attackComplexity": "HIGH",
                "privilegesRequired": "NONE",
                "userInteraction": "REQUIRED",
                "scope": "CHANGED",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "availabilityImpact": "LOW",
                "baseScore": 8.2,
                "baseSeverity": "HIGH",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:L",
                "version": "3.1"
            }
        ]
    }
}