# CVE-2022-31035: External URLs for Deployments can include javascript in argo-cd

- Severity: Critical 9.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- 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): 1.00%, higher than 63% of CVEs (2026-12-01)
- Published: 2022-06-21T20:04:34.000Z
- Modified: 2026-06-17T04:44:39.377Z
- Also known as: GHSA-h4w9-6x78-8vrj, GO-2022-0498
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- argoproj argo-cd: >= 1.0.0, < 2.1.16; >= 2.2.0, < 2.2.10; >= 2.3.0, < 2.3.5; >= 2.4.0, < 2.4.1
- github.com/argoproj/argo-cd (Go): from 1.0.0 before 2.1.16; from 1.0.0
- github.com/argoproj/argo-cd/v2 (Go): before 2.1.16; from 2.2.0 before 2.2.10; from 2.3.0 before 2.3.5; from 2.4.0 before 2.4.1
- argoproj argo_cd: from 1.0.0 before 2.1.16; 2.2.9; 2.3.4; 2.4.0

## Every score

- GitHub_M: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`

## References

- <https://github.com/argoproj/argo-cd/security/advisories/GHSA-h4w9-6x78-8vrj> (advisory, mitigation, third-party-advisory, web)
- <https://github.com/argoproj/argo-cd/commit/8bc3ef690de29c68a36f473908774346a44d4038> (fix, patch, third-party-advisory, web)
- <https://argo-cd.readthedocs.io/en/stable/user-guide/external-url/> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-31035> (advisory)
- <https://argo-cd.readthedocs.io/en/stable/user-guide/external-url> (web)
- <https://github.com/argoproj/argo-cd> (package)

## Sources

- CVE List: [CVE-2022-31035](https://www.cve.org/CVERecord?id=CVE-2022-31035), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-h4w9-6x78-8vrj](https://github.com/advisories/GHSA-h4w9-6x78-8vrj), CC-BY-4.0, modified 2024-08-21
- Go Vulnerability Database: [GO-2022-0498](https://pkg.go.dev/vuln/GO-2022-0498), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2022-31035](https://nvd.nist.gov/vuln/detail/CVE-2022-31035), Public domain, modified 2026-06-17

---

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