Description
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.
Published: 2026-09-21
Score: 7.5 High
EPSS: n/a
KEV: No
Impact: Stored Cross‑Site Scripting
Action: Apply Patch
AI Analysis

Impact

GoCD can generate unescaped tracking‑tool links from commit comments when a project uses a lenient regular expression that captures an ID, such as JIRA-(.+). If an attacker with commit access injects URI or HTML special characters into a matching comment, the resulting link is stored and rendered when a victim views an affected Compare Pipeline page. The stored cross‑site scripting can expose the victim’s privileged session or allow the attacker to perform actions on the victim’s behalf. There is no known environment restriction beyond the need for commit‑level write access to a tracked material.

Affected Systems

The vulnerability affects GoCD servers from release 18.3.0 up to but excluding version 26.1.0. Servers that include a tracking‑tool integration, use an ID‑capturing group in the regular expression, and allow special characters in match results are impacted. Deployments that do not use Tracking Tool integration, omit the capturing group, or use conservative matchers that block special characters are not affected.

Risk and Exploitability

With a CVSS score of 7.5 the vulnerability is considered high risk. The EPSS score is not available, so the current exploitation probability is unknown. It is not listed in the CISA KEV catalog. Attacks would require the attacker to be able to add or modify a commit comment in a tracked material; once a victim views the page the malicious script is executed in the victim’s browser context. This can lead to session hijacking or privilege escalation within the GoCD environment.

Generated by OpenCVE AI on September 21, 2026 at 16:25 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade GoCD to version 26.1.0 or later
  • Configure the tracking‑tool regular expression to eliminate ID capturing groups or restrict it to characters that cannot trigger script tags
  • Ensure that only trusted users have commit write permissions on tracked material

Generated by OpenCVE AI on September 21, 2026 at 16:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 21 Sep 2026 19:45:00 +0000

Type Values Removed Values Added
First Time appeared Gocd
Gocd gocd
Vendors & Products Gocd
Gocd gocd

Mon, 21 Sep 2026 15:00:00 +0000

Type Values Removed Values Added
Description 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.
Title GoCD has stored XSS possible via tracking tool link highlighting on Compare Pipeline pages
Weaknesses CWE-80
References
Metrics cvssV4_0

{'score': 7.5, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:P/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-21T14:57:50.940Z

Reserved: 2026-06-08T14:00:43.573Z

Link: CVE-2026-52741

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-21T15:17:28.600

Modified: 2026-09-21T15:17:28.600

Link: CVE-2026-52741

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-21T19:23:26Z

Weaknesses
  • CWE-80

    Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)