GitHub Advisoryadvisory · Go

GHSA-qq5v-f4c3-395c Possible XSS when using SSO with the CLI in github.com/argoproj/argo-cd/v2

MEDIUM Published 2021-05-21 Modified 2024-08-07 Official page ↗
Aliases
CVE-2021-23347
Ecosystem
Go
Packages
github.com/argoproj/argo-cd/v2
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L
Weaknesses
CWE-79
Reviewed
2021-05-21

Affected packages

• Go github.com/argoproj/argo-cd/v2: < 1.7.13 → fixed in 1.7.13 • Go github.com/argoproj/argo-cd/v2: >= 1.8.0, < 1.8.6 → fixed in 1.8.6

Description

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.

Related

Alias · CVE (1)

  • CVE-2021-23347 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… vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References