{"id":"CVE-2022-31035","published":"2022-06-27T19:10:11Z","modified":"2025-04-23T18:08:09Z","title":"External URLs for Deployments can include javascript in argo-cd","vendor":"argoproj","product":"argo-cd","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01001,"percentile":0.63688,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/argoproj/argo-cd/security/advisories/GHSA-h4w9-6x78-8vrj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/argoproj/argo-cd/commit/8bc3ef690de29c68a36f473908774346a44d4038","tags":["x_refsource_MISC"]},{"url":"https://argo-cd.readthedocs.io/en/stable/user-guide/external-url/","tags":["x_refsource_MISC"]}],"priority":{"score":19.0,"factors":[{"name":"EPSS percentile","points":12.74},{"name":"CVSS severity","points":6.3}]},"vendorSlug":"argoproj","affectedVersions":[{"vendor":"argoproj","product":"argo-cd","versions":[">= 1.0.0, < 2.1.16",">= 2.2.0, < 2.2.10",">= 2.3.0, < 2.3.5",">= 2.4.0, < 2.4.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-23T15:51:58.378697Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/argoproj/argo-cd","vulnerableRanges":[">=1.0.0, <2.1.16",">=1.0.0"],"patched":["2.1.16"],"from":["GHSA-h4w9-6x78-8vrj","GO-2022-0498"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v2","vulnerableRanges":["<2.1.16",">=2.2.0, <2.2.10",">=2.3.0, <2.3.5",">=2.4.0, <2.4.1"],"patched":["2.1.16","2.2.10","2.3.5","2.4.1"],"from":["GHSA-h4w9-6x78-8vrj","GO-2022-0498"],"provenance":"source"}],"summary":{"text":"An attacker with a low-privileged account in Argo CD, the GitOps continuous delivery tool for Kubernetes from argoproj, can inject a javascript: link into the UI through external URLs for Deployments, where it is rendered as cross-site scripting. Exploitation requires a victim user to click the malicious link, after which the script runs with that victim's permissions, up to and including admin, and can perform any action available in the UI or API, such as creating, modifying, or deleting Kubernetes resources.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:17:28Z"},"euvd":{"id":"EUVD-2022-6061","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-argoproj-argo-cd-cve-2020-11576","children":[{"from":"CVE-2022-31035","to":"CVE-2024-28175","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["ui/src/app/applications/components/application-urls.tsx"],"commits":["https://github.com/argoproj/argo-cd/commit/8bc3ef690de29c68a36f473908774346a44d4038","https://github.com/argoproj/argo-cd/commit/479b5544b57dc9ef767d49f7003f39602c480b71"],"basis":"shared function","functions":["ExternalLink"]},{"kind":"similar","provenance":"machine","score":0.48,"basis":"same product + CWE + description similarity"}]}]}}