Vulnerability · Published Mar 13, 2024 · Assigned by GitHub_M
CVE-2024-28175Cross-site scripting on application summary component in argo-cd
Critical 9.1
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 0.7% (higher than 52% 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. Due to the improper URL protocols filtering of links specified in the `link.argocd.argoproj.io` annotations in the application summary component, an attacker can achieve cross-site scripting with elevated permissions. All unpatched 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). This vulnerability allows an attacker to perform arbitrary actions on behalf of the victim via the API, such as creating, modifying, and deleting Kubernetes resources. A patch for this vulnerability has been released in Argo CD versions v2.10.3 v2.9.8, and v2.8.12. There are no completely-safe workarounds besides upgrading. The safest alternative, if upgrading is not possible, would be to create a Kubernetes admission controller to reject any resources with an annotation starting with link.argocd.argoproj.io or reject the resource if the value use an improper URL protocol. This validation will need to be applied in all clusters managed by ArgoCD.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/argoproj/argo-cd | no fix listed | GHSA-jwv5-8mqv-g387 |
| Go | github.com/argoproj/argo-cd | no fix listed | GO-2024-2646 |
| Go | github.com/argoproj/argo-cd/v2 | 2.9.8 | GHSA-jwv5-8mqv-g387 |
| Go | github.com/argoproj/argo-cd/v2 | 2.10.3 | GHSA-jwv5-8mqv-g387 |
| Go | github.com/argoproj/argo-cd/v2 | 2.8.12 | GHSA-jwv5-8mqv-g387 |
| Go | github.com/argoproj/argo-cd/v2 | 2.10.3, 2.8.12, 2.9.8 | GO-2024-2646 |
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