Skip to content
Heist/ feed
Back to feed
Critical

External URLs for Deployments can include javascript in argo-cd

Type: advisorySources: OSV

Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. All versions of Argo CD starting with v1.0.0 are vulnerable to a cross-site scripting (XSS) bug allowing a malicious user to inject a `javascript:` link in the UI. When clicked by a victim user, the script will execute with the victim's permissions (up to and including admin). The script would be capable of doing anything which is possible in the UI or via the API, such as creating, modifying, and deleting Kubernetes resources. A patch for this vulnerability has been released in the following Argo CD versions: v2.4.1, v2.3.5, v2.2.10 and v2.1.16. There are no completely-safe workarounds besides upgrading.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-31035
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 21:06 UTC · Revision 1

Source evidence

External URLs for Deployments can include javascript in argo-cd

core-osv · Original source

Published 27 Jun 2022, 19:10 UTC

Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. All versions of Argo CD starting with v1.0.0 are vulnerable to a cross-site scripting (XSS) bug allowing a malicious user to inject a `javascript:` link in the UI. When clicked by a victim user, the script will execute with the victim's permissions (up to and including admin). The script would be capable of doing anything which is possible in the UI or via the API, such as creating, modifying, and deleting Kubernetes resources. A patch for this vulnerability has been released in the following Argo CD versions: v2.4.1, v2.3.5, v2.2.10 and v2.1.16. There are no completely-safe workarounds besides upgrading.

osv:CVE-2022-31035
Complete source record
{
  "id": "428e0a5747e013f69e5723bc5d2ce29b26fa77c3dffe27c6769995ab595ee454",
  "url": "https://osv.dev/vulnerability/CVE-2022-31035",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "External URLs for Deployments can include javascript in argo-cd",
    "summary": "Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. All versions of Argo CD starting with v1.0.0 are vulnerable to a cross-site scripting (XSS) bug allowing a malicious user to inject a `javascript:` link in the UI. When clicked by a victim user, the script will execute with the victim's permissions (up to and including admin). The script would be capable of doing anything which is possible in the UI or via the API, such as creating, modifying, and deleting Kubernetes resources. A patch for this vulnerability has been released in the following Argo CD versions: v2.4.1, v2.3.5, v2.2.10 and v2.1.16. There are no completely-safe workarounds besides upgrading.",
    "evidence": "osv:CVE-2022-31035",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2022-31035",
      "aliases": [
        "CVE-2022-31035",
        "GHSA-h4w9-6x78-8vrj",
        "GO-2022-0498"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/argoproj/argo-cd",
              "type": "GIT",
              "events": [
                {
                  "introduced": "c74ca22023cbee245cb83fb23224978fbe23703c"
                },
                {
                  "fixed": "903db5fe464032bd5a10bf32fe17639e76634c2a"
                },
                {
                  "introduced": "38755a4c1e5232aa2e6f80c062593c9f07da0757"
                },
                {
                  "fixed": "8bc3ef690de29c68a36f473908774346a44d4038"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:argoproj:argo_cd:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.0.0"
                      },
                      {
                        "fixed": "2.1.16"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:argoproj:argo_cd:2.2.9:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.2.9"
                      },
                      {
                        "last_affected": "2.2.9"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:argoproj:argo_cd:2.3.4:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.3.4"
                      },
                      {
                        "last_affected": "2.3.4"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:argoproj:argo_cd:2.4.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.4.0"
                      },
                      {
                        "last_affected": "2.4.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "8bc3ef690de29c68a36f473908774346a44d4038"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.2.9",
            "2.3.4",
            "2.4.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-31035.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:39.468851594Z",
      "provider": "osv",
      "references": [
        "https://argo-cd.readthedocs.io/en/stable/user-guide/external-url/",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31035.json",
        "https://github.com/argoproj/argo-cd/security/advisories/GHSA-h4w9-6x78-8vrj",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-31035",
        "https://github.com/argoproj/argo-cd/commit/8bc3ef690de29c68a36f473908774346a44d4038"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31035.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-31035",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 507032,
  "published_at": "2022-06-27T19:10:11+00:00"
}