Vulnerability · Published Jun 27, 2022 · Assigned by GitHub_M
CVE-2022-31035External URLs for Deployments can include javascript in argo-cd
Critical 9.0
In plain English
A critical-severity cross-site scripting in argo-cd from argoproj. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 63% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. All versions of Argo CD starting with v1.0.0 are vulnerable to a cross-site scripting (XSS) bug allowing a malicious user to inject a `javascript:` link in the UI. When clicked by a victim user, the script will execute with the victim's permissions (up to and including admin). The script would be capable of doing anything which is possible in the UI or via the API, such as creating, modifying, and deleting Kubernetes resources. A patch for this vulnerability has been released in the following Argo CD versions: v2.4.1, v2.3.5, v2.2.10 and v2.1.16. There are no completely-safe workarounds besides upgrading.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/argoproj/argo-cd | no fix listed | GO-2022-0498 |
| Go | github.com/argoproj/argo-cd | 2.1.16 | GHSA-h4w9-6x78-8vrj |
| Go | github.com/argoproj/argo-cd/v2 | 2.2.10 | GHSA-h4w9-6x78-8vrj |
| Go | github.com/argoproj/argo-cd/v2 | 2.4.1 | GHSA-h4w9-6x78-8vrj |
| Go | github.com/argoproj/argo-cd/v2 | 2.1.16, 2.2.10, 2.3.5, 2.4.1 | GO-2022-0498 |
| Go | github.com/argoproj/argo-cd/v2 | 2.3.5 | GHSA-h4w9-6x78-8vrj |
| Go | github.com/argoproj/argo-cd/v2 | 2.1.16 | GHSA-h4w9-6x78-8vrj |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H