{"cve":"CVE-2022-31102","nvd":{"published":"2022-07-12T22:15:08.100","modified":"2026-06-17T04:44:48.093","status":"Modified","description":"Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Argo CD starting with 2.3.0 and prior to 2.3.6 and 2.4.5 is vulnerable to a cross-site scripting (XSS) bug which could allow an attacker to inject arbitrary JavaScript in the `/auth/callback` page in a victim's browser. This vulnerability only affects Argo CD instances which have single sign on (SSO) enabled. The exploit also assumes the attacker has 1) access to the API server's encryption key, 2) a method to add a cookie to the victim's browser, and 3) the ability to convince the victim to visit a malicious `/auth/callback` link. The vulnerability is classified as low severity because access to the API server's encryption key already grants a high level of access. Exploiting the XSS would allow the attacker to impersonate the victim, but would not grant any privileges which the attacker could not otherwise gain using the encryption key. A patch for this vulnerability has been released in the following Argo CD versions 2.4.5 and 2.3.6. There is currently no known workaround.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://github.com/argoproj/argo-cd/releases/tag/v2.3.6","https://github.com/argoproj/argo-cd/releases/tag/v2.4.5","https://github.com/argoproj/argo-cd/security/advisories/GHSA-pmjg-52h9-72qv","https://github.com/argoproj/argo-cd/releases/tag/v2.3.6","https://github.com/argoproj/argo-cd/releases/tag/v2.4.5"],"products":["argoproj:argo_cd"],"source":"nvd","synced_at":"2026-10-19T21:33:44.859608815+00:00"},"epss":{"cve":"CVE-2022-31102","score":0.00629,"percentile":0.50137,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-pmjg-52h9-72qv","url":"https://osv.dev/vulnerability/GHSA-pmjg-52h9-72qv","summary":"Argo CD SSO users vulnerable to Cross-site Scripting","modified":"2024-08-21T15:41:45.788815Z","packages":[{"ecosystem":"Go","name":"github.com/argoproj/argo-cd","purl":"pkg:golang/github.com/argoproj/argo-cd","ranges":[">=2.3.0 <2.3.6"],"fixed":["2.3.6"]},{"ecosystem":"Go","name":"github.com/argoproj/argo-cd","purl":"pkg:golang/github.com/argoproj/argo-cd","ranges":[">=2.4.0 <2.4.5"],"fixed":["2.4.5"]}]},{"id":"GO-2022-0517","url":"https://osv.dev/vulnerability/GO-2022-0517","summary":"Argo CD SSO users vulnerable to Cross-site Scripting in github.com/argoproj/argo-cd","modified":"2026-03-03T04:52:11.025500Z","packages":[{"ecosystem":"Go","name":"github.com/argoproj/argo-cd","purl":"pkg:golang/github.com/argoproj/argo-cd","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/argoproj/argo-cd/v2","purl":"pkg:golang/github.com/argoproj/argo-cd/v2","ranges":[">=2.3.0 <2.3.6",">=2.4.0 <2.4.5"],"fixed":["2.3.6","2.4.5"]}]}],"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."]}