XSS in Gocd
CVE-2022-29183
GoCD is a continuous delivery server. GoCD versions 20.2.0 until 21.4.0 are vulnerable to reflected cross-site scripting via abuse of the pipeline comparison function's error handling to render arbitrary HTML into the returned page. This could allow an attacker to trick a victim into executing code which would allow the attacker to operate on, or gain control over the same resources as the victim had access to. This issue is fixed in GoCD 21.4.0. As a workaround, block access to `/go/compare/.*` prior to GoCD Server via a reverse proxy, web application firewall or equivalent, which would prevent use of the pipeline comparison function.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 4.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N.
EPSS exploit prediction
EPSS 0.009, 59.4th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Gocd — versions >= 20.2.0, < 21.4.0
- Thoughtworks Gocd
Weakness classification (CWE)
References
- github.com/gocd/gocd/security/advisories/GHSA-3vvq-q4qv-x2gf (Third Party Advisory)
- github.com/gocd/gocd/pull/9829/commits/bda81084c0401234b168437cf35a63390e3064d1 (Patch)
- github.com/gocd/gocd/releases/tag/21.4.0 (Third Party Advisory, Release Notes)
- www.gocd.org/releases/ (Release Notes, Vendor Advisory)