# CVE-2022-31102: Cross-site Scripting for Argo CD single sign on users

- Priority: **Routine**
- Reason: Not severe (CVSS 2.6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-07-12 · Modified: 2025-04-23
- Aliases: GHSA-pmjg-52h9-72qv, GO-2022-0517
- Record: https://cvemate.com/vulnerability/CVE-2022-31102 · JSON: https://cvemate.com/vulnerability/CVE-2022-31102/json

## 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.
```

## Signals

- CVSS: 6.1 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- EPSS: 0.654%, percentile 52.743%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- argoproj argo\_cd: ≥ 2.3.0, \< 2.3.6 \| ≥ 2.4.0, \< 2.4.5
- argoproj argo-cd: ≥ 2.3.0, \< 2.3.6 \| ≥ 2.4.0, \< 2.4.5
- github.com/argoproj argo-cd (Go): ≥ 2.3.0, \< 2.3.6 \| ≥ 2.4.0, \< 2.4.5 \| All versions (No fix recorded)
- github.com/argoproj/argo-cd v2 (Go): ≥ 2.4.0, \< 2.4.5

## 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://nvd.nist.gov/vuln/detail/CVE-2022-31102>
- <https://github.com/argoproj/argo-cd/commit/3800a1e49d1d5a00a6692fee83396a37a6abe89a>
- <https://github.com/argoproj/argo-cd/commit/8d5119b1e3038a2c1d8b651cb242525e9e734c4c>
- <https://github.com/argoproj/argo-cd>

---

Data as of 2026-12-05T14:01:35.601Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
