CVE-2022-31035
MEDIUM 5.4CVSS 3.1Argo CD's external URLs for Deployments can include JavaScript
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.
- Published
- 27 Jun 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-h4w9-6x78-8vrjGO-2022-0498
- Sources
- NVDJSONOSV GHSA-h4w9-6x78-8vrjJSONOSV GO-2022-0498JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.0 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.0 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 3.5 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | argoproj | argo_cdcpe:2.3:a:argoproj:argo_cd:*:*:*:*:*:*:*:* |
>= 1.0.0, < 2.1.16 | 2.1.16 |
| NVD | argoproj | argo_cdcpe:2.3:a:argoproj:argo_cd:2.2.9:*:*:*:*:*:*:* |
= 2.2.9 | |
| NVD | argoproj | argo_cdcpe:2.3:a:argoproj:argo_cd:2.3.4:*:*:*:*:*:*:* |
= 2.3.4 | |
| NVD | argoproj | argo_cdcpe:2.3:a:argoproj:argo_cd:2.4.0:*:*:*:*:*:*:* |
= 2.4.0 | |
| OSV | Go | github.com/argoproj/argo-cd | >= 1.0.0, < 2.1.16 | 2.1.16 |
| OSV | Go | github.com/argoproj/argo-cd/v2 | < 2.1.16 | 2.1.16 |
| OSV | Go | github.com/argoproj/argo-cd/v2 | >= 2.2.0, < 2.2.10 | 2.2.10 |
| OSV | Go | github.com/argoproj/argo-cd/v2 | >= 2.3.0, < 2.3.5 | 2.3.5 |
| OSV | Go | github.com/argoproj/argo-cd/v2 | >= 2.4.0, < 2.4.1 | 2.4.1 |
| OSV | Go | github.com/argoproj/argo-cd | >= 1.0.0 | |
| OSV | Go | github.com/argoproj/argo-cd/v2 | < 2.1.16; >= 2.2.0, < 2.2.10; >= 2.3.0, < 2.3.5; >= 2.4.0, < 2.4.1 | 2.1.16, 2.2.10, 2.3.5, 2.4.1 |
References
- https://argo-cd.readthedocs.io/en/stable/user-guide/external-url/ · Vendor Advisory, WEB
- https://github.com/argoproj/argo-cd/commit/8bc3ef690de29c68a36f473908774346a44d4038 · Patch, Third Party Advisory, WEB, FIX
- https://github.com/argoproj/argo-cd/security/advisories/GHSA-h4w9-6x78-8vrj · Mitigation, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2022-31035 · ADVISORY
- https://github.com/argoproj/argo-cd · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 27 Jun 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 21 Jun 2022)