Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-43288

An issue was discovered in ThoughtWorks GoCD before 21.3.0. An attacker in control of a GoCD Agent can plant malicious JavaScript into a failed Job Report.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-43288
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 13:03 UTC · Revision 1

Source evidence

CVE-2021-43288

core-osv · Original source

Published 14 Apr 2022, 13:15 UTC

An issue was discovered in ThoughtWorks GoCD before 21.3.0. An attacker in control of a GoCD Agent can plant malicious JavaScript into a failed Job Report.

osv:CVE-2021-43288
Complete source record
{
  "id": "9d42b9454b80dd5e63346aa0305f6fd468638262fe61d42b121e87e3b35aaaa3",
  "url": "https://osv.dev/vulnerability/CVE-2021-43288",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-43288",
    "summary": "An issue was discovered in ThoughtWorks GoCD before 21.3.0. An attacker in control of a GoCD Agent can plant malicious JavaScript into a failed Job Report.",
    "evidence": "osv:CVE-2021-43288",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-43288",
      "aliases": [
        "CVE-2021-43288"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/gocd/gocd",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4c4bb4780eb0d3fc4cacfc4cfcc0b07e2eaf0595"
                },
                {
                  "fixed": "f5c1d2aa9ab302a97898a6e4b16218e64fe8e9e4"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:thoughtworks:gocd:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "21.3.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "f5c1d2aa9ab302a97898a6e4b16218e64fe8e9e4"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "21.2.0",
            "21.1.0",
            "20.10.0",
            "20.9.0",
            "20.8.0",
            "20.7.0",
            "20.6.0",
            "20.5.0",
            "20.4.0",
            "20.3.0",
            "20.2.0",
            "20.1.0",
            "19.12.0",
            "19.11.0",
            "19.10.0",
            "19.9.0",
            "19.8.0",
            "19.7.0",
            "19.6.0",
            "19.5.0",
            "19.4.0",
            "19.3.0",
            "19.2.0",
            "19.1.0",
            "18.12.0",
            "18.11.0",
            "18.10.0",
            "18.9.0",
            "18.8.0",
            "18.7.0",
            "18.6.0",
            "18.5.0",
            "18.4.0",
            "18.3.0",
            "18.2.0",
            "18.1.0",
            "17.12.0",
            "17.11.0",
            "17.10.0",
            "17.9.0",
            "17.8.0",
            "17.7.0",
            "17.6.0",
            "17.5.0",
            "17.4.0",
            "17.3.0",
            "17.2.0",
            "17.1.0",
            "16.12.0",
            "16.11.0",
            "16.10.0",
            "16.9.0",
            "16.8.0",
            "16.7.0",
            "16.6.0",
            "16.5.0",
            "16.4.0",
            "16.3.0",
            "16.2.0",
            "16.1.0",
            "15.3.0",
            "15.2.0",
            "15.1.0",
            "14.4.0",
            "14.3.0",
            "14.2.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-43288.json",
            "vanir_signatures": [
              {
                "id": "CVE-2021-43288-132f8abb",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "41130404282318150981389390619315329558",
                    "117417995383817804647042997548096880401",
                    "339481908839719685303323831546175213824",
                    "185696123082887796366643922406931954908",
                    "140962149972854787697455876797272875024",
                    "172268737465801296500107483293618244501"
                  ]
                },
                "source": "https://github.com/gocd/gocd/commit/f5c1d2aa9ab302a97898a6e4b16218e64fe8e9e4",
                "target": {
                  "file": "common/src/test/java/com/thoughtworks/go/domain/FolderDirectoryEntryTest.java"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-43288-17fee504",
                "digest": {
                  "length": 79,
                  "function_hash": "277832213749086550094602471120368985873"
                },
                "source": "https://github.com/gocd/gocd/commit/f5c1d2aa9ab302a97898a6e4b16218e64fe8e9e4",
                "target": {
                  "file": "common/src/main/java/com/thoughtworks/go/server/presentation/html/HtmlElement.java",
                  "function": "content"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-43288-50bcf4ba",
                "digest": {
                  "length": 935,
                  "function_hash": "169831231781064058981204781722622135125"
                },
                "source": "https://github.com/gocd/gocd/commit/4c4bb4780eb0d3fc4cacfc4cfcc0b07e2eaf0595",
                "target": {
                  "file": "server/src/main/java/com/thoughtworks/go/server/controller/ArtifactsController.java",
                  "function": "getArtifact"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-43288-8ad89d5c",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "198270681855997635050275658244298040909",
                    "92694157782684808310545017511849568516",
                    "159073927930292031138447366549011488720",
                    "177899793082831555105634838780035529231"
                  ]
                },
                "source": "https://github.com/gocd/gocd/commit/f5c1d2aa9ab302a97898a6e4b16218e64fe8e9e4",
                "target": {
                  "file": "common/src/main/java/com/thoughtworks/go/domain/DirectoryEntries.java"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-43288-8cbaf716",
                "digest": {
                  "length": 805,
                  "function_hash": "46622639701462554494085306319090792137"
                },
                "source": "https://github.com/gocd/gocd/commit/4c4bb4780eb0d3fc4cacfc4cfcc0b07e2eaf0595",
                "target": {
                  "file": "server/src/main/java/com/thoughtworks/go/server/controller/ArtifactsController.java",
                  "function": "consoleout"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-43288-b126524f",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "119410508526062846899070262397994851315",
                    "30735711512745886265326382857562123540",
                    "273540969283561134716709162127965113682",
                    "176275089518117490442390096014503045418"
                  ]
                },
                "source": "https://github.com/gocd/gocd/commit/f5c1d2aa9ab302a97898a6e4b16218e64fe8e9e4",
                "target": {
                  "file": "common/src/main/java/com/thoughtworks/go/domain/FolderDirectoryEntry.java"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-43288-b5dab9ba",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "312044316349043762132660748309941610253",
                    "256637536371406419586597220985411684489",
                    "333124841869036422491056056007801561635",
                    "235771309604204505386534889221782206700",
                    "50947427936912875553634603336562278676",
                    "117681936723556710923454445676841017941",
                    "177432775209488317237403144805652479666",
                    "211145546446505473087097954992567901577",
                    "54553599175285427904195511061305691940",
                    "44321068693799336148783371705659211925",
                    "222000082690613801919619545979750701695"
                  ]
                },
                "source": "https://github.com/gocd/gocd/commit/f5c1d2aa9ab302a97898a6e4b16218e64fe8e9e4",
                "target": {
                  "file": "common/src/main/java/com/thoughtworks/go/server/presentation/html/HtmlElement.java"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-43288-c62c5dea",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "219744567178386472931426060691752182870",
                    "33826569787096491834605372258126750130",
                    "50716403453545536161590681343053786441",
                    "36699377348188772274659214622610304835",
                    "186402665283495640455695244972906634561",
                    "105738403421211834056096073550232370866",
                    "249186177297844560674030412416911095073"
                  ]
                },
                "source": "https://github.com/gocd/gocd/commit/4c4bb4780eb0d3fc4cacfc4cfcc0b07e2eaf0595",
                "target": {
                  "file": "server/src/main/java/com/thoughtworks/go/server/controller/ArtifactsController.java"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-43288-c932b981",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "236366784861235243515631465874348738547",
                    "294165472048635542858226235474378532441",
                    "29744849027231144714792298547525138320",
                    "252194360484237263014059727769367591571"
                  ]
                },
                "source": "https://github.com/gocd/gocd/commit/f5c1d2aa9ab302a97898a6e4b16218e64fe8e9e4",
                "target": {
                  "file": "common/src/main/java/com/thoughtworks/go/domain/FileDirectoryEntry.java"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T14:34:25Z"
          }
        }
      ],
      "modified": "2026-10-20T14:34:25.751668789Z",
      "provider": "osv",
      "references": [
        "https://www.gocd.org/releases/#21-3-0",
        "https://blog.sonarsource.com/gocd-vulnerability-chain",
        "https://github.com/gocd/gocd/commit/f5c1d2aa9ab302a97898a6e4b16218e64fe8e9e4"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-43288",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 389717,
  "published_at": "2022-04-14T13:15:11.46+00:00"
}