Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/argoproj/argo-cd
  4. ›
  5. CVE-2022-31102

CVE-2022-31102: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

July 12, 2022 (updated July 21, 2022)

Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Argo CD starting with 2.3.0 and prior to 2.3.6 and 2.4.5 is vulnerable to a cross-site scripting (XSS) bug which could allow an attacker to inject arbitrary JavaScript in the /auth/callback page in a victim’s browser. This vulnerability only affects Argo CD instances which have single sign on (SSO) enabled. The exploit also assumes the attacker has 1) access to the API server’s encryption key, 2) a method to add a cookie to the victim’s browser, and 3) the ability to convince the victim to visit a malicious /auth/callback link. The vulnerability is classified as low severity because access to the API server’s encryption key already grants a high level of access. Exploiting the XSS would allow the attacker to impersonate the victim, but would not grant any privileges which the attacker could not otherwise gain using the encryption key. A patch for this vulnerability has been released in the following Argo CD versions 2.4.5 and 2.3.6. There is currently no known workaround.

References

  • github.com/advisories/GHSA-pmjg-52h9-72qv
  • github.com/argoproj/argo-cd/releases/tag/v2.3.6
  • github.com/argoproj/argo-cd/releases/tag/v2.4.5
  • github.com/argoproj/argo-cd/security/advisories/GHSA-pmjg-52h9-72qv
  • nvd.nist.gov/vuln/detail/CVE-2022-31102

Code Behaviors & Features

Detect and mitigate CVE-2022-31102 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.3.0 before 2.3.6, all versions starting from 2.4.0 before 2.4.5

Fixed versions

  • v2.3.6
  • v2.4.5

Solution

Upgrade to versions 2.3.6, 2.4.5 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

go/github.com/argoproj/argo-cd/CVE-2022-31102.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:24 +0000.