GoCD
GoCD has stored XSS possible via tracking tool link highlighting on Compare Pipeline pages
GoCD is a continuous deliver server. From 18.3.0 until 26.1.0, GoCD can generate unescaped tracking-tool links from commit comments when a project uses a lenient Tracking Tool regular expression with an ID capturing group, such as JIRA-(.+). An attacker with commit access to a tracked material can place URI or HTML special characters in a matching commit comment, causing stored cross-site scripting when a victim views an affected Compare Pipeline page. Deployments without Tracking Tool integration, without an ID capturing group, or with conservative matchers that cannot match special characters are not affected. Successful exploitation can expose a privileged user session or allow changes using the victim's credentials and privileges. This issue is fixed in version 26.1.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 18.3.0, < 26.1.0
Fixed in 26.1.0
Mitigation
Upgrade gocd to 26.1.0 or later.
References
- Vendor advisory github.com/gocd/gocd/security/advisories/GHSA-…
- Patch github.com/gocd/gocd/pull/14356
- Patch github.com/gocd/gocd/commit/1adba7ded0b9ef57e2…
1 more
- Release notes github.com/gocd/gocd/releases/tag/26.1.0
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.