# CVE-2024-28866: GoCD vulnerable to reflected Cross-site Scripting possible on server loading page during start-up

- Severity: Low 3.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.73%, higher than 50% of CVEs (2026-11-30)
- Published: 2024-05-13T13:53:30.719Z
- Modified: 2026-06-17T07:21:56.173Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

GoCD is a continuous delivery server. GoCD versions from 19.4.0 to 23.5.0 (inclusive) are potentially vulnerable to a reflected cross-site scripting vulnerability on the loading page displayed while GoCD is starting, via abuse of a `redirect_to` query parameter with inadequate validation.

Attackers could theoretically abuse the query parameter to steal session tokens or other values from the user's browser. In practice exploiting this to perform privileged actions is likely rather difficult to exploit because the target user would need to be triggered to open an attacker-crafted link in the period where the server is starting up (but not completely started), requiring chaining with a separate denial-of-service vulnerability. Additionally, GoCD server restarts invalidate earlier session tokens (i.e GoCD does not support persistent sessions), so a stolen session token would be unusable once the server has completed restart, and executed XSS would be done within a logged-out context.

The issue is fixed in GoCD 24.1.0. As a workaround, it is technically possible in earlier GoCD versions to override the loading page with an earlier version which is not vulnerable, by starting GoCD with the Java system property override as either `-Dloading.page.resource.path=/loading_pages/default.loading.page.html` (simpler early version of loading page without GoCD introduction) or `-Dloading.page.resource.path=/does_not_exist.html` (to display a simple message with no interactivity).

(As written by CVE List.)

## Affected

- gocd gocd: >= 19.4.0, < 24.1.0
- thoughtworks gocd: from 19.4.0 before 24.1.0

## Every score

- GitHub_M: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/gocd/gocd/security/advisories/GHSA-q882-q6mm-mgvh> (vendor-advisory)
- <https://github.com/gocd/gocd/commit/388d8893ec4cac51d2b76e923cc9b55c7703e402> (patch)
- <https://github.com/gocd/gocd/releases/tag/24.1.0> (release-notes)
- <https://www.gocd.org/releases/#24-1-0> (release-notes)

## Sources

- CVE List: [CVE-2024-28866](https://www.cve.org/CVERecord?id=CVE-2024-28866), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2024-28866](https://nvd.nist.gov/vuln/detail/CVE-2024-28866), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-28866 · Whole record: https://cve.day/CVE-2024-28866.json · Rebuilt by cve.day 2026-11-25T22:58:40.125Z
