{"id":"CVE-2021-23347","aliases":["CVE-2021-23347","GHSA-qq5v-f4c3-395c","BIT-ARGO-CD-2021-23347","GO-2022-0869","SNYK-GOLANG-GITHUBCOMARGOPROJARGOCDCMD-1078291"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site Scripting (XSS)","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nWhen 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.\n\nWe believe the exploitation of this vulnerability is only be possible when Argo CD is connected to a compromised/malicious SSO provider.\n\n### Patches\n\nA patch for this vulnerability is available with the v1.8.7 and v1.7.14 releases of Argo CD.\n\n### Workarounds\n\n* Do not use SSO with the CLI when you don't trust your SSO provider\n\n\nIf you have any questions or comments about this advisory:\n\n* Open an issue in [the Argo CD issue tracker](https://github.com/argoproj/argo-cd/issues) or [discussions](https://github.com/argoproj/argo-cd/discussions)\n* Join us on [Slack](https://argoproj.github.io/community/join-slack) in channel `#argo-cd`\n\n### Credits\n\nThe 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.\n\nThe 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.\n\nWe fully agree with Adam that this bug is a security vulnerability and justifies publishing a SA, to provide our community and users full transparancy.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Possible XSS when using SSO with the CLI in github.com/argoproj/argo-cd","format":"markdown","source":"go"},{"lang":"es","text":"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","source":"nvd"}],"published":"2021-03-03T09:55:25.235Z","modified":"2026-07-08T06:49:37.661Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L","score":4.7,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L","score":4.7,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L","score":4.7,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","score":3.5,"rating":"LOW"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"1.7.13","status":"affected"},{"type":"custom","introduced":"1.8.0","fixed":"unspecified","status":"affected"},{"type":"custom","introduced":"unspecified","fixed":"1.8.6","status":"affected"}],"product":"github.com/argoproj/argo-cd/cmd","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.7.13"}],"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v2","purl":"pkg:golang/github.com/argoproj/argo-cd/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.8.0","status":"affected","fixed":"1.8.6"}],"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v2","purl":"pkg:golang/github.com/argoproj/argo-cd/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.7.13"},{"type":"semver","introduced":"1.8.0","status":"affected","fixed":"1.8.6"}],"ecosystem":"Go","package":"github.com/argoproj/argo-cd","purl":"pkg:golang/github.com/argoproj/argo-cd","source":"go"},{"ranges":[{"status":"affected","fixed":"1.7.13"},{"status":"affected","introduced":"1.8.0","fixed":"1.8.6"}],"vendor":"argoproj","product":"argo_cd","cpe":"cpe:2.3:a:argoproj:argo_cd:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.7.13"},{"type":"semver","introduced":"1.8.0","status":"affected","fixed":"1.8.6"}],"ecosystem":"Bitnami","package":"argo-cd","purl":"pkg:bitnami/argo-cd","source":"bitnami"}],"references":[{"url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMARGOPROJARGOCDCMD-1078291","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://github.com/argoproj/argo-cd/pull/5563","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://github.com/argoproj/argo-cd/security/advisories/GHSA-qq5v-f4c3-395c","tags":["advisory","web"],"sources":["ghsa","go"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23347","tags":["advisory"],"sources":["ghsa","go"]}],"credits":["jannfis"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23347","url":"https://www.cve.org/CVERecord?id=CVE-2021-23347","licence":"CVE Terms of Use","modified":"2024-09-17T04:14:06.008Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qq5v-f4c3-395c","url":"https://github.com/advisories/GHSA-qq5v-f4c3-395c","licence":"CC-BY-4.0","modified":"2026-07-08T06:49:37.661Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0869","url":"https://pkg.go.dev/vuln/GO-2022-0869","licence":"CC-BY-4.0","modified":"2026-07-08T06:49:37.661Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23347","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23347","licence":"Public domain","modified":"2026-06-17T03:38:35.987Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-ARGO-CD-2021-23347","url":"https://osv.dev/vulnerability/BIT-ARGO-CD-2021-23347","licence":"Apache-2.0","modified":"2026-07-08T06:49:37.661Z"}],"updatedAt":"2026-11-25T22:58:00.123Z","epss":{"score":0.00601,"percentile":0.50124,"date":"2026-12-01T12:00:22.000Z"}}