CVE-2023-6568
Reflected XSS via Content-Type Header in mlflow/mlflow
Record summary
CVE-2023-6568 has a selected CVSS score of 6.1 (medium); EIP currently links 1 Nuclei template.
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.
Exploitation context
Available material
- Nuclei templates
- 1
Affected products and versions
2| Product | Source | Version range | Status |
|---|---|---|---|
mlflow/mlflowBrowse mlflow / mlflow/mlflow | CVE List | Before 2.9.0 | affected |
mlflowBrowse PyPI / mlflow | GitHub Advisory | Before 2.9.0 · Fixed in 2.9.0 | affected |
Nuclei templates
1ProjectDiscoveryMEDIUMMlflow - Cross-Site ScriptingCVSS 6.1
The vulnerability allows an attacker to inject malicious code into the Content-Type header of a POST request, which is then reflected back to the user without proper sanitization or escaping.
Impact
Allows attackers to execute malicious scripts in the context of a user's session
Remediation
Sanitize and validate user input to prevent XSS attacks
Source: ProjectDiscovery