CVE-2024-28866

Source
https://cve.org/CVERecord?id=CVE-2024-28866
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-28866.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-28866
Aliases
  • GHSA-q882-q6mm-mgvh
Published
2024-05-13T13:53:30.719Z
Modified
2025-11-30T18:46:12.201495Z
Severity
  • 3.1 (Low) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N CVSS Calculator
Summary
GoCD vulnerable to reflected Cross-site Scripting possible on server loading page during start-up
Details

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).

Database specific
{
    "cwe_ids": [
        "CWE-79"
    ],
    "cna_assigner": "GitHub_M",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/28xxx/CVE-2024-28866.json"
}
References

Affected packages

Git / github.com/gocd/gocd

Affected ranges

Type
GIT
Repo
https://github.com/gocd/gocd
Events

Affected versions

19.*

19.10.0
19.11.0
19.12.0
19.4.0
19.5.0
19.6.0
19.7.0
19.8.0
19.9.0

20.*

20.1.0
20.10.0
20.2.0
20.3.0
20.4.0
20.5.0
20.6.0
20.7.0
20.8.0
20.9.0

21.*

21.1.0
21.2.0
21.3.0
21.4.0

22.*

22.1.0
22.2.0
22.3.0

23.*

23.1.0
23.2.0
23.3.0
23.4.0
23.5.0

Database specific

source

"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-28866.json"