{"cve":"CVE-2022-31035","nvd":{"published":"2022-06-27T19:15:08.457","modified":"2026-06-17T04:44:39.377","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4},"cwes":["CWE-79"],"references":["https://argo-cd.readthedocs.io/en/stable/user-guide/external-url/","https://github.com/argoproj/argo-cd/commit/8bc3ef690de29c68a36f473908774346a44d4038","https://github.com/argoproj/argo-cd/security/advisories/GHSA-h4w9-6x78-8vrj","https://argo-cd.readthedocs.io/en/stable/user-guide/external-url/","https://github.com/argoproj/argo-cd/commit/8bc3ef690de29c68a36f473908774346a44d4038"],"products":["argoproj:argo_cd"],"source":"nvd","synced_at":"2026-10-19T21:32:39.174919249+00:00"},"epss":{"cve":"CVE-2022-31035","score":0.00986,"percentile":0.62396,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-h4w9-6x78-8vrj","url":"https://osv.dev/vulnerability/GHSA-h4w9-6x78-8vrj","summary":"Argo CD's external URLs for Deployments can include JavaScript","modified":"2024-08-21T15:41:52.799754Z","packages":[{"ecosystem":"Go","name":"github.com/argoproj/argo-cd","purl":"pkg:golang/github.com/argoproj/argo-cd","ranges":[">=1.0.0 <2.1.16"],"fixed":["2.1.16"]},{"ecosystem":"Go","name":"github.com/argoproj/argo-cd/v2","purl":"pkg:golang/github.com/argoproj/argo-cd/v2","ranges":["<2.1.16"],"fixed":["2.1.16"]},{"ecosystem":"Go","name":"github.com/argoproj/argo-cd/v2","purl":"pkg:golang/github.com/argoproj/argo-cd/v2","ranges":[">=2.2.0 <2.2.10"],"fixed":["2.2.10"]},{"ecosystem":"Go","name":"github.com/argoproj/argo-cd/v2","purl":"pkg:golang/github.com/argoproj/argo-cd/v2","ranges":[">=2.3.0 <2.3.5"],"fixed":["2.3.5"]},{"ecosystem":"Go","name":"github.com/argoproj/argo-cd/v2","purl":"pkg:golang/github.com/argoproj/argo-cd/v2","ranges":[">=2.4.0 <2.4.1"],"fixed":["2.4.1"]}]},{"id":"GO-2022-0498","url":"https://osv.dev/vulnerability/GO-2022-0498","summary":"Argo CD's external URLs for Deployments can include JavaScript in github.com/argoproj/argo-cd","modified":"2026-03-03T04:50:27.814319Z","packages":[{"ecosystem":"Go","name":"github.com/argoproj/argo-cd","purl":"pkg:golang/github.com/argoproj/argo-cd","ranges":[">=1.0.0"],"fixed":[]},{"ecosystem":"Go","name":"github.com/argoproj/argo-cd/v2","purl":"pkg:golang/github.com/argoproj/argo-cd/v2","ranges":["<2.1.16",">=2.2.0 <2.2.10",">=2.3.0 <2.3.5",">=2.4.0 <2.4.1"],"fixed":["2.1.16","2.2.10","2.3.5","2.4.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}