# CVE-2024-9526: Stored XSS in Kubeflow Pipeline View

> Attackers can inject malicious scripts via pipeline descriptions in Kubeflow, potentially executing code or hijacking user sessions.

- **Severity:** High 7.1 (`CVSS:4.0/AV:A/AC:L/AT:P/PR:H/UI:P/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L/S:P/AU:Y/R:U/V:D/RE:L/U:Green`)
- **Exploited in the wild:** Not known
- **Login needed:** An administrator
- **Attackable:** Local or same network only
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 18 Nov 2024
- **Updated:** 21 Nov 2024
- **Also known as:** GHSA-rm25-8wjq-c6qm, GO-2024-3278

## What is CVE-2024-9526?

CVE-2024-9526 is a high-severity cross-site scripting vulnerability in Kubeflow Pipeline View, published on 18 Nov 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

### Official description

There exists a stored XSS Vulnerability in Kubeflow Pipeline View web UI. The Kubeflow Web UI allows to create new pipelines. When creating a new pipeline, it is possible to add a description. The description field allows html tags, which are not filtered properly. Leading to a stored XSS. We recommend upgrading past commit 930c35f1c543998e60e8d648ce93185c9b5dbe8d

Weakness: CWE-79 (Improper Neutralization of Input During Web Page Generation)

## Which versions are affected by CVE-2024-9526?

1 open source package ship an affected version, including github.com/kubeflow/pipelines. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/kubeflow/pipelines` | Go | All versions | None |

Products: Kubeflow Pipelines.

## How do I fix CVE-2024-9526?

Apply the vendor's patch.

## Is CVE-2024-9526 being exploited?

There is no known exploitation of CVE-2024-9526 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-9526 and fix it if it is affected.

What it is: CVE-2024-9526 is a high-severity cross-site scripting vulnerability in Kubeflow Pipeline View, published on 18 Nov 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2024-9526 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/kubeflow/pipelines (Go): affected all versions; no fix listed

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-9526/ (Markdown: https://insights.sbomify.com/CVE-2024-9526/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-9526
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-9526
- OSV: https://osv.dev/vulnerability/CVE-2024-9526

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-9526/
Summaries are generated and may contain mistakes; the official description above is the record.
