4.7medium
Cross-site Scripting (XSS)
- Severity
- 4.7medium CVSS:3.1 by snyk
- Exploit likelihood
- 0.60% (higher than 50% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-qq5v-f4c3-395cBIT-ARGO-CD-2021-23347GO-2022-0869SNYK-GOLANG-GITHUBCOMARGOPROJARGOCDCMD-1078291
Description
The package github.com/argoproj/argo-cd/cmd before 1.7.13, from 1.8.0 and before 1.8.6 are vulnerable to Cross-site Scripting (XSS) the SSO provider connected to Argo CD would have to send back a malicious error message containing JavaScript to the user.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| github.com/argoproj/argo-cd/cmd | from unspecified before 1.7.13, from 1.8.0 before unspecified, from unspecified before 1.8.6 | CVE List |
| github.com/argoproj/argo-cd/v2 (Go) | before 1.7.13, from 1.8.0 before 1.8.6 | GitHub Advisory Database |
| github.com/argoproj/argo-cd (Go) | before 1.7.13, from 1.8.0 before 1.8.6 | Go Vulnerability Database |
| argoproj argo_cd | before 1.7.13, from 1.8.0 before 1.8.6 | NVD |
| argo-cd (Bitnami) | before 1.7.13, from 1.8.0 before 1.8.6 | Bitnami Vulnerability Database |
All scores
| snyk | 4.7medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L |
| GitHub | 4.7medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L |
| NVD | 4.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.5low CVSS:2.0 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
What each source says
CVE List
The package github.com/argoproj/argo-cd/cmd before 1.7.13, from 1.8.0 and before 1.8.6 are vulnerable to Cross-site Scripting (XSS) the SSO provider connected to Argo CD would have to send back a malicious error message containing JavaScript to the user.
GitHub Advisory Database
Impact
When using SSO with the Argo CD CLI, a malicious SSO provider could have sent specially crafted error message that would result in XSS on the client by means of executing arbitrary JavaScript code.
We believe the exploitation of this vulnerability is only be possible when Argo CD is connected to a compromised/malicious SSO provider.
Patches
A patch for this vulnerability is available with the v1.8.7 and v1.7.14 releases of Argo CD.
Workarounds
- Do not use SSO with the CLI when you don't trust your SSO provider
If you have any questions or comments about this advisory:
- Open an issue in the Argo CD issue tracker or discussions
- Join us on Slack in channel
#argo-cd
Credits
The issue was found during static code scanning with CodeQL and fixed by the Argo CD team. While we believed that a rogue SSO provider would pose a severe threat by itself, we fixed it like a regular bug.
The Argo CD team would like to thank Adam Gold of Snyk (https://snyk.io) for stepping up and classifying this correctly as a security issue and for his help in determining its severity. Also, Snyk kindly reserved and provided the CVE for this vulnerability.
We fully agree with Adam that this bug is a security vulnerability and justifies publishing a SA, to provide our community and users full transparancy.
Go Vulnerability Database
Possible XSS when using SSO with the CLI in github.com/argoproj/argo-cd
NVD (es)
El paquete github.com/argoproj/argo-cd/cmd versiones anteriores a 1.7.13, versiones desde 1.8.0 y anteriores a 1.8.6, son vulnerables a un ataque de tipo Cross-site Scripting (XSS), el proveedor de SSO conectado a Argo CD tendrĂa que devolver un mensaje de error malicioso que contiene JavaScript para el usuario
References
| https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMARGOPROJARGOCDCMD-1078291 | third-party-advisory, web | |
| https://github.com/argoproj/argo-cd/pull/5563 | fix, patch, third-party-advisory, web | |
| https://github.com/argoproj/argo-cd/security/advisories/GHSA-qq5v-f4c3-395c | advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-23347 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-23347 changed 2024-09-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qq5v-f4c3-395c changed 2026-07-08 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2022-0869 changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-23347 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-ARGO-CD-2021-23347 changed 2026-07-08 | Apache-2.0 |