# CVE-2022-29182: DOM-based XSS in GoCD

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/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.86%, higher than 59% of CVEs (2026-12-01)
- Published: 2022-05-20T19:05:12.000Z
- Modified: 2026-06-17T04:39:45.680Z
- 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 19.11.0 through 21.4.0 (inclusive) are vulnerable to a Document Object Model (DOM)-based cross-site scripting attack via a pipeline run's Stage Details > Graphs tab. It is possible for a malicious script on a attacker-hosted site to execute script that will run within the user's browser context and GoCD session via abuse of a messaging channel used for communication between with the parent page and the stage details graph's iframe. This could allow an attacker to steal a GoCD user's session cookies and/or execute malicious code in the user's context. This issue is fixed in GoCD 22.1.0. There are currently no known workarounds.

(As written by CVE List.)

## Affected

- gocd gocd: >= 19.11.0, < 22.1.0
- thoughtworks gocd: from 19.11.0 up to 21.4.0

## Every score

- GitHub_M: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/gocd/gocd/releases/tag/22.1.0> (release-notes, third-party-advisory)
- <https://www.gocd.org/releases/#22-1-0> (release-notes, vendor-advisory)
- <https://github.com/gocd/gocd/security/advisories/GHSA-qcg6-4q44-3589> (third-party-advisory)
- <https://github.com/gocd/gocd/pull/10190/commits/a256d05de1445e6c77843f098581fc6a66fe4477> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2022-29182](https://www.cve.org/CVERecord?id=CVE-2022-29182), CVE Terms of Use, modified 2025-04-23
- NVD: [CVE-2022-29182](https://nvd.nist.gov/vuln/detail/CVE-2022-29182), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-29182 · Whole record: https://cve.day/CVE-2022-29182.json · Rebuilt by cve.day 2026-11-25T22:58:11.855Z
