CVE-2022-31035
What it is
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.
At a glance
- Exploitability
- Can be exploited over the network with a low-privilege account, but needs a user to act. High risk of data exposure, data tampering, service disruption.
- Exploit odds
- 1.0% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 1.0% in the next 30 days (EPSS).
- Severity: 9.0 CRITICAL (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 1.0% · EPSS, next 30 days
- Weakness
- CWE-79 · Cross-site scripting
- Record status
- Modified
Affected
- Argoproj Argo Cd < 2.1.16
- Argoproj Argo Cd 2.2.9
- Argoproj Argo Cd 2.3.4
- Argoproj Argo Cd 2.4.0
Attack profile CVSS 3.1 · 9.0
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Raw vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2022-31035.md and follow it. Check whether this project is affected by CVE-2022-31035. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://argo-cd.readthedocs.io/en/stable/user-guide/external-url/
- https://github.com/argoproj/argo-cd/commit/8bc3ef690de29c68a36f473908774346a44d4038
- https://github.com/argoproj/argo-cd/security/advisories/GHSA-h4w9-6x78-8vrj
- https://argo-cd.readthedocs.io/en/stable/user-guide/external-url/
- https://github.com/argoproj/argo-cd/commit/8bc3ef690de29c68a36f473908774346a44d4038
- https://github.com/argoproj/argo-cd/security/advisories/GHSA-h4w9-6x78-8vrj
References
- https://argo-cd.readthedocs.io/en/stable/user-guide/external-url/
- https://github.com/argoproj/argo-cd/commit/8bc3ef690de29c68a36f473908774346a44d4038
- https://github.com/argoproj/argo-cd/security/advisories/GHSA-h4w9-6x78-8vrj
- https://argo-cd.readthedocs.io/en/stable/user-guide/external-url/
- https://github.com/argoproj/argo-cd/commit/8bc3ef690de29c68a36f473908774346a44d4038
- https://github.com/argoproj/argo-cd/security/advisories/GHSA-h4w9-6x78-8vrj