CVE-2021-23347
JSON

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 packageVersionsReported by
github.com/argoproj/argo-cd/cmdfrom unspecified before 1.7.13, from 1.8.0 before unspecified, from unspecified before 1.8.6CVE List
github.com/argoproj/argo-cd/v2 (Go)before 1.7.13, from 1.8.0 before 1.8.6GitHub Advisory Database
github.com/argoproj/argo-cd (Go)before 1.7.13, from 1.8.0 before 1.8.6Go Vulnerability Database
argoproj argo_cdbefore 1.7.13, from 1.8.0 before 1.8.6NVD
argo-cd (Bitnami)before 1.7.13, from 1.8.0 before 1.8.6Bitnami Vulnerability Database

All scores

snyk4.7medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L
GitHub4.7medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L
NVD4.8medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
NVD3.5low CVSS:2.0AV:N/AC:M/Au:S/C:N/I:P/A:N
Bitnami Vulnerability Databasemedium 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:

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

Sources

SourceRecordLicence
CVE ListCVE-2021-23347 changed 2024-09-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-qq5v-f4c3-395c changed 2026-07-08CC-BY-4.0
Go Vulnerability DatabaseGO-2022-0869 changed 2026-07-08CC-BY-4.0
NVDCVE-2021-23347 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-ARGO-CD-2021-23347 changed 2026-07-08Apache-2.0