Browse / AI Framework and Platform Flaws / CVE-2023-6568
Cross-site Scripting (XSS) in MLflow
- Class
- AI Framework and Platform Flaws (filed by a model that read the source)
- Technique
- Cross-site scripting
- Affected
- mlflow (PyPI)
- CVSS
- CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- EPSS
- 1.6% chance of exploitation in 30 days
How it works, in short
The Content-Type request header is echoed into an HTML response without escaping, so a crafted header runs script in the victim's browser. (Our summary, written by a model. The source text is below.)
Details
A reflected Cross-Site Scripting (XSS) vulnerability exists in the mlflow/mlflow repository, specifically within the handling of the Content-Type header in POST requests. An attacker can inject malicious JavaScript code into the Content-Type header, which is then improperly reflected back to the user without adequate sanitization or escaping, leading to arbitrary JavaScript execution in the context of the victim's browser. The vulnerability is present in the mlflow/server/auth/__init__.py file, where the user-supplied Content-Type header is directly injected into a Python formatted string and returned to the user, facilitating the XSS attack.
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-6568
- https://github.com/mlflow/mlflow/commit/28ff3f94994941e038f2172c6484b65dc4db6ca1
- https://github.com/mlflow/mlflow
- https://github.com/pypa/advisory-database/tree/main/vulns/mlflow/PYSEC-2023-260.yaml
- https://huntr.com/bounties/816bdaaa-8153-4732-951e-b0d92fddf709
Source: GitHub Advisory Database, used under CC BY 4.0.