External URLs for Deployments can include javascript in argo-cd
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/argoproj/argo-cdGo | >= 1.0.0, < 2.1.16 | 2.1.16 |
github.com/argoproj/argo-cd/v2Go | < 2.1.16 | 2.1.16 |
github.com/argoproj/argo-cd/v2Go | >= 2.2.0, < 2.2.10 | 2.2.10 |
github.com/argoproj/argo-cd/v2Go | >= 2.3.0, < 2.3.5 | 2.3.5 |
github.com/argoproj/argo-cd/v2Go | >= 2.4.0, < 2.4.1 | 2.4.1 |
Affected products
3- ghsa-coords2 versions
>= 1.0.0, < 2.1.16+ 1 more
- (no CPE)range: >= 1.0.0, < 2.1.16
- (no CPE)range: < 2.1.16
Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-h4w9-6x78-8vrjghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-31035ghsaADVISORY
- argo-cd.readthedocs.io/en/stable/user-guide/external-urlghsaWEB
- argo-cd.readthedocs.io/en/stable/user-guide/external-url/mitrex_refsource_MISC
- github.com/argoproj/argo-cd/commit/8bc3ef690de29c68a36f473908774346a44d4038ghsax_refsource_MISCWEB
- github.com/argoproj/argo-cd/security/advisories/GHSA-h4w9-6x78-8vrjghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.