CVE-2023-32766: Github.com/gitpod io/gitpod Cross-Site Scripting Vulnerability
MODERATECVE-2023-32766 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Github.com/gitpod io/gitpod libraries in the Go ecosystem. The issue involves gitpod vulnerable to cross-site scripting. Remediation is available by upgrading affected packages to version 2022.11.3.
CVE-2023-32766 at a Glance
Security Impact
CVSS: 6.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2023-32766
To remediate this vulnerability, upgrade all affected Github.com/gitpod io/gitpod dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/gitpod-io/gitpod to 2022.11.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/gitpod-io/gitpod
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-32766, inspect your project dependencies for Github.com/gitpod io/gitpod:
inspect dependencies for github.com/gitpod-io/gitpod
Analyze the terminal output to locate any version of Github.com/gitpod io/gitpod in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2022.11.3), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Github.com/gitpod io/gitpod, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-32766 Affected Github.com/gitpod io/gitpod Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/gitpod-io/gitpod
|
Go |
< 2022.11.3
|
2022.11.3
|
References
Frequently Asked Questions
What is CVE-2023-32766?
Which Github.com/gitpod io/gitpod versions are affected?
What version fixes CVE-2023-32766?
Is github.com/gitpod-io/gitpod affected?
What is the CVSS score of CVE-2023-32766?
What CWE is associated with CVE-2023-32766?
How can I check Go dependencies for CVE-2023-32766?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gqx9-h3w2-fprg",
"modified" : "2023-06-12T16:44:45Z",
"published" : "2023-06-05T15:33:28Z",
"aliases" : [ "CVE-2023-32766" ],
"summary" : "Gitpod vulnerable to Cross-site Scripting",
"details" : "Gitpod before 2022.11.3 allows XSS because redirection can occur for some protocols outside of the trusted set of three (vscode: vscode-insiders: jetbrains-gateway:).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/gitpod-io/gitpod"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2022.11.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-32766"
}, {
"type" : "WEB",
"url" : "https://github.com/gitpod-io/gitpod/pull/17559"
}, {
"type" : "WEB",
"url" : "https://github.com/gitpod-io/gitpod/commit/6771283c3406586e352337675b79ff2ca50f191b"
}, {
"type" : "WEB",
"url" : "https://app.safebase.io/portal/71ccd717-aa2d-4a1e-942e-c768d37e9e0c/preview?product=default&tcuUid=1d505bda-9a38-4ca5-8724-052e6337f34d"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/gitpod-io/gitpod"
}, {
"type" : "WEB",
"url" : "https://github.com/gitpod-io/gitpod/compare/release-2022.11.2...2022.11.3"
}, {
"type" : "WEB",
"url" : "https://github.com/gitpod-io/gitpod/releases/tag/2022.11.3"
}, {
"type" : "WEB",
"url" : "https://www.gitpod.io"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-06-06T02:07:25Z",
"nvd_published_at" : "2023-06-05T15:15:09Z"
}
}