{"id":"CVE-2022-31102","published":"2022-07-12T22:05:36Z","modified":"2025-04-23T18:02:38Z","title":"Cross-site Scripting for Argo CD single sign on users","vendor":"argoproj","product":"argo-cd","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.6,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00644,"percentile":0.51845,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/argoproj/argo-cd/releases/tag/v2.3.6","tags":["x_refsource_MISC"]},{"url":"https://github.com/argoproj/argo-cd/releases/tag/v2.4.5","tags":["x_refsource_MISC"]},{"url":"https://github.com/argoproj/argo-cd/security/advisories/GHSA-pmjg-52h9-72qv","tags":["x_refsource_CONFIRM"]}],"priority":{"score":12.2,"factors":[{"name":"EPSS percentile","points":10.37},{"name":"CVSS severity","points":1.82}]},"vendorSlug":"argoproj","affectedVersions":[{"vendor":"argoproj","product":"argo-cd","versions":[">= 2.3.0, < 2.3.6",">= 2.4.0, < 2.4.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T14:03:24.132857Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/argoproj/argo-cd","vulnerableRanges":[">=2.3.0, <2.3.6",">=2.4.0, <2.4.5","all versions"],"patched":["2.3.6","2.4.5"],"from":["GHSA-pmjg-52h9-72qv","GO-2022-0517"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v2","vulnerableRanges":[">=2.3.0, <2.3.6",">=2.4.0, <2.4.5"],"patched":["2.3.6","2.4.5"],"from":["GO-2022-0517"],"provenance":"source"}],"summary":{"text":"A cross-site scripting flaw in the /auth/callback page of Argo CD, the GitOps continuous delivery tool for Kubernetes, lets an attacker inject arbitrary JavaScript into a victim's browser, but only on instances with single sign-on enabled. Exploitation requires the attacker to hold the API server's encryption key, be able to add a cookie to the victim's browser, and convince the victim to open a malicious /auth/callback link.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:59:17Z"},"euvd":{"id":"EUVD-2022-6387","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-argoproj-argo-cd-cve-2022-31034","parents":[{"from":"CVE-2022-31034","to":"CVE-2022-31102","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["util/oidc/oidc.go"],"commits":["https://github.com/argoproj/argo-cd/commit/17f7f4f462bdb233e1b9b36f67099f41052d8cb0","https://github.com/argoproj/argo-cd/commit/3800a1e49d1d5a00a6692fee83396a37a6abe89a","https://github.com/argoproj/argo-cd/commit/8d5119b1e3038a2c1d8b651cb242525e9e734c4c"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2022-24730","published":"2022-03-23","fixed":"2.3.0","kev":false},{"cve":"CVE-2022-24731","published":"2022-03-23","fixed":"2.3.0","kev":false},{"cve":"CVE-2022-24768","published":"2022-03-23","fixed":"2.3.2","kev":false,"link":{"from":"CVE-2022-24768","to":"CVE-2022-31102","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/argoproj/argo-cd","fromFixed":"2.3.2","toFixed":"2.3.6","daysApart":111}]}},{"cve":"CVE-2022-31102","published":"2022-07-12","fixed":"2.4.5","kev":false},{"cve":"CVE-2022-31105","published":"2022-07-12","fixed":"2.4.5","kev":false},{"cve":"CVE-2023-22482","published":"2023-01-25","fixed":"2.6.0-rc5","kev":false,"link":{"from":"CVE-2022-31102","to":"CVE-2023-22482","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/argoproj/argo-cd","fromFixed":"2.3.6","toFixed":"2.3.14","daysApart":197},{"kind":"version-step","provenance":"source","package":"Go:github.com/argoproj/argo-cd/v2","fromFixed":"2.3.6","toFixed":"2.3.14","daysApart":197}]}},{"cve":"CVE-2023-23947","published":"2023-02-16","fixed":"2.6.2","kev":false}],"package":"Go:github.com/argoproj/argo-cd"}}