Описание
Argo Workflows affected by stored XSS in the artifact directory listing
Summary
Stored XSS in the artifact directory listing allows any workflow author to execute arbitrary JavaScript in another user’s browser under the Argo Server origin, enabling API actions with the victim’s privileges.
Details
The directory listing response in server/artifacts/artifact_server.go renders object names directly into HTML via fmt.Fprintf without escaping. Object names come from driver.ListObjects(...) and are attacker‑controlled when a workflow writes files into an output artifact directory.
PoC
- Deploy Argo Workflows:
- Port‑forward Argo Server:
- Create the PoC workflow:
- Wait for completion:
- Get the node ID:
- Open the listing:
https://localhost:2746/artifact-files/argo/workflows/<wf-name>/<node-id>/outputs/dir/
Impact
- The attacker creates a workflow that produces a HTML artifact that contains a HTML file that contains a script which uses XHR calls to interact with the Argo Server API.
- The attacker emails the deep-link to the artifact to their victim. The victim opens the link, the script starts running.
As the script has access to the Argo Server API (as the victim), so may do the following (if the victim may):
- Read information about the victim’s workflows.
- Create or delete workflows.
Ссылки
- https://github.com/argoproj/argo-workflows/security/advisories/GHSA-cv78-6m8q-ph82
- https://nvd.nist.gov/vuln/detail/CVE-2026-23960
- https://github.com/argoproj/argo-workflows/commit/159a5c56285ecd4d3bb0a67aeef4507779a44e17
- https://github.com/argoproj/argo-workflows/blob/9872c296d29dcc5e9c78493054961ede9fc30797/server/artifacts/artifact_server.go#L194-L244
- https://github.com/argoproj/argo-workflows/releases/tag/v3.6.17
- https://github.com/argoproj/argo-workflows/releases/tag/v3.7.8
Пакеты
github.com/argoproj/argo-workflows/v3
< 3.6.17
3.6.17
github.com/argoproj/argo-workflows/v3
>= 3.7.0, <= 3.7.7
3.7.8
github.com/argoproj/argo-workflows
<= 2.5.3-rc4
Отсутствует
Связанные уязвимости
Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. Prior to versions 3.6.17 and 3.7.8, stored XSS in the artifact directory listing allows any workflow author to execute arbitrary JavaScript in another user’s browser under the Argo Server origin, enabling API actions with the victim’s privileges. Versions 3.6.17 and 3.7.8 fix the issue.