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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 2.6
- **CVSS:** 2.6 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:N/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: High; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: None; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.64% (percentile 45, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** GHSA-pmjg-52h9-72qv, GO-2022-0517
- **Published:** 2022-07-12T22:05:36.000Z
- **Modified:** 2026-06-17T04:44:48.093Z

## Who should check

- Projects that depend on Go package github.com/argoproj/argo-cd (\>= 2.3.0, \< 2.3.6)
- Projects that depend on Go package github.com/argoproj/argo-cd/v2 (\>= 2.3.0, \< 2.3.6; \>= 2.4.0, \< 2.4.5)
- Anyone running argoproj argo-cd \>= 2.3.0, \< 2.3.6; \>= 2.4.0, \< 2.4.5

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

## Affected and fixed versions

- Go `github.com/argoproj/argo-cd`: affected \>= 2.3.0, \< 2.3.6; fixed 2.3.6, 2.4.5 (osv)
- Go `github.com/argoproj/argo-cd/v2`: affected \>= 2.3.0, \< 2.3.6; \>= 2.4.0, \< 2.4.5; fixed 2.3.6, 2.4.5 (osv)
- argoproj argo-cd: \>= 2.3.0, \< 2.3.6; \>= 2.4.0, \< 2.4.5 (cvelist)

## Mitigation

- Upgrade github.com/argoproj/argo-cd to one of 2.3.6, 2.4.5 (or later in the same release line).
- Upgrade github.com/argoproj/argo-cd/v2 to one of 2.3.6, 2.4.5 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-31102. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-31102.md
Affected: github.com/argoproj/argo-cd >= 2.3.0, < 2.3.6; github.com/argoproj/argo-cd/v2 >= 2.3.0, < 2.3.6; >= 2.4.0, < 2.4.5
Fixed in: 2.3.6, 2.4.5

Steps:
1. Search this machine and project for github.com/argoproj/argo-cd (Go), github.com/argoproj/argo-cd/v2 (Go), argoproj argo-cd: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-31102 being exploited?

There is no confirmed exploitation: CVE-2022-31102 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.64% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-31102?

Low: CVSS 2.6 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2022-31102?

github.com/argoproj/argo-cd \>= 2.3.0, \< 2.3.6; github.com/argoproj/argo-cd/v2 \>= 2.3.0, \< 2.3.6; \>= 2.4.0, \< 2.4.5.

### Is there a fix for CVE-2022-31102?

Yes. Fixed in 2.3.6, 2.4.5. Upgrade github.com/argoproj/argo-cd to one of 2.3.6, 2.4.5 (or later in the same release line). Upgrade github.com/argoproj/argo-cd/v2 to one of 2.3.6, 2.4.5 (or later in the same release line).

### How do I check if I'm affected by CVE-2022-31102?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/argoproj/argo-cd/security/advisories/GHSA-pmjg-52h9-72qv>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-31102>
- patch: <https://github.com/argoproj/argo-cd/commit/3800a1e49d1d5a00a6692fee83396a37a6abe89a>
- patch: <https://github.com/argoproj/argo-cd/commit/8d5119b1e3038a2c1d8b651cb242525e9e734c4c>
- other: <https://github.com/argoproj/argo-cd/releases/tag/v2.3.6>
- other: <https://github.com/argoproj/argo-cd/releases/tag/v2.4.5>
- other: <https://github.com/argoproj/argo-cd>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-31102>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-pmjg-52h9-72qv> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2022-0517> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2022-31102> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-31102>
