CVE-2022-31102Argoproj Argo Cd
Medium 6.1 No auth needed
Follow: this CVE · Argoproj · Argoproj Argo Cd We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.6% probability of exploitation in 30 days · percentile 45
- Auth required
- No
- Published
- Jul 12, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Argo Cd.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/argoproj/argo-cd |
≥ 2.3.0 < 2.3.6 |
2.3.6 |
go get github.com/argoproj/argo-cd@v2.3.6 |
| Go | github.com/argoproj/argo-cd |
≥ 2.4.0 < 2.4.5 |
2.4.5 |
go get github.com/argoproj/argo-cd@v2.4.5 |
| Go | github.com/argoproj/argo-cd |
all |
no fixed version | — |
| Go | github.com/argoproj/argo-cd/v2 |
≥ 2.3.0 < 2.3.6 |
2.3.6 |
go get github.com/argoproj/argo-cd/v2@v2.3.6 |
| Go | github.com/argoproj/argo-cd/v2 |
≥ 2.4.0 < 2.4.5 |
2.4.5 |
go get github.com/argoproj/argo-cd/v2@v2.4.5 |
Per OSV / GitHub Advisories (GHSA-pmjg-52h9-72qv, GO-2022-0517). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| argoproj | argo_cd | ≥ 2.3.0 < 2.3.6 |
| argoproj | argo_cd | ≥ 2.4.0 < 2.4.5 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Release Notes Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Third Party Advisory