Vulnerability · Published Dec 7, 2023 · Assigned by @huntr_ai

CVE-2023-6568Reflected XSS via Content-Type Header in mlflow/mlflow

Medium 6.5

In plain English

A medium-severity cross-site scripting in mlflow/mlflow from mlflow. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 77% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)6.5Medium
Exploit odds (30 days)1.7%top 23.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Nuclei

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPImlflow2.9.0GHSA-vwhf-3v6x-wff8
PyPImlflow2.9.1PYSEC-2023-260

Affected products (as reported)

VendorProductVersions
mlflow mlflow/mlflow unspecified – before 2.9.0

Weakness: CWE-79 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

References