CVE-2022-31102
MEDIUM 6.1CVSS 3.1Argo CD SSO users vulnerable to Cross-site Scripting
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.
- Published
- 12 Jul 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-pmjg-52h9-72qvGO-2022-0517
- Sources
- NVDJSONOSV GHSA-pmjg-52h9-72qvJSONOSV GO-2022-0517JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 2.6 | CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 2.6 | CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:N/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | argoproj | argo_cdcpe:2.3:a:argoproj:argo_cd:*:*:*:*:*:*:*:* |
>= 2.3.0, < 2.3.6 | 2.3.6 |
| NVD | argoproj | argo_cdcpe:2.3:a:argoproj:argo_cd:*:*:*:*:*:*:*:* |
>= 2.4.0, < 2.4.5 | 2.4.5 |
| OSV | Go | github.com/argoproj/argo-cd | >= 2.3.0, < 2.3.6 | 2.3.6 |
| OSV | Go | github.com/argoproj/argo-cd | >= 2.4.0, < 2.4.5 | 2.4.5 |
| OSV | Go | github.com/argoproj/argo-cd | all versions | |
| OSV | Go | github.com/argoproj/argo-cd/v2 | >= 2.3.0, < 2.3.6; >= 2.4.0, < 2.4.5 | 2.3.6, 2.4.5 |
References
- https://github.com/argoproj/argo-cd/releases/tag/v2.3.6 · Release Notes, Third Party Advisory, WEB
- https://github.com/argoproj/argo-cd/releases/tag/v2.4.5 · Release Notes, Third Party Advisory, WEB
- https://github.com/argoproj/argo-cd/security/advisories/GHSA-pmjg-52h9-72qv · Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2022-31102 · ADVISORY
- https://github.com/argoproj/argo-cd/commit/3800a1e49d1d5a00a6692fee83396a37a6abe89a · WEB, FIX
- https://github.com/argoproj/argo-cd/commit/8d5119b1e3038a2c1d8b651cb242525e9e734c4c · WEB, FIX
- https://github.com/argoproj/argo-cd · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 12 Jul 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 12 Jul 2022)