MISFIRE

Browse / AI Framework and Platform Flaws / CVE-2023-6568

Cross-site Scripting (XSS) in MLflow

CVE-2023-6568 ยท 2023-12-07 moderate

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

Source: GitHub Advisory Database, used under CC BY 4.0.