{"id":"CVE-2023-6568","published":"2023-12-07T04:54:10Z","modified":"2024-08-02T08:35:14Z","title":"Reflected XSS via Content-Type Header in mlflow/mlflow","vendor":"mlflow","product":"mlflow/mlflow","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01649,"percentile":0.77092,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://huntr.com/bounties/816bdaaa-8153-4732-951e-b0d92fddf709","tags":[]},{"url":"https://github.com/mlflow/mlflow/commit/28ff3f94994941e038f2172c6484b65dc4db6ca1","tags":[]}],"priority":{"score":25.0,"factors":[{"name":"EPSS percentile","points":15.42},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.55}]},"exploitSources":{"nuclei":[{"id":"CVE-2023-6568","name":"Mlflow - Cross-Site Scripting","severity":"medium","path":"http/cves/2023/CVE-2023-6568.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-6568.yaml"}],"provenance":"source"},"vendorSlug":"mlflow","affectedVersions":[{"vendor":"mlflow","product":"mlflow/mlflow","versions":[">= unspecified, < 2.9.0"]}],"affected":[{"ecosystem":"PyPI","package":"mlflow","vulnerableRanges":["<2.9.0","<2.9.1"],"patched":["2.9.0","2.9.1"],"from":["GHSA-vwhf-3v6x-wff8","PYSEC-2023-260"],"provenance":"source"}],"summary":{"text":"A reflected cross-site scripting flaw exists in the mlflow/mlflow product, specifically in the Content-Type header handling for POST requests within mlflow/server/auth/__init__.py, where the header value is inserted unescaped into a formatted string returned to the user. An attacker can exploit it by crafting a request containing malicious JavaScript in the Content-Type header and getting a victim to interact with the resulting page, such as by following a link, which then executes the script in the victim's browser with high confidentiality impact and no authentication required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T07:24:51Z"},"euvd":{"id":"EUVD-2023-0155","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-6015","published":"2023-11-16","fixed":"2.8.1","kev":false,"link":{"from":"CVE-2023-6015","to":"CVE-2023-6568","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:mlflow","fromFixed":"2.8.1","toFixed":"2.9.0","daysApart":21},{"kind":"same-code","provenance":"machine","files":["mlflow/server/handlers.py"],"commits":["https://github.com/mlflow/mlflow/commit/cf83dad4df26dd4a850622fe8a51ccab1471a5e7","https://github.com/mlflow/mlflow/commit/28ff3f94994941e038f2172c6484b65dc4db6ca1"],"basis":"shared file"}]}},{"cve":"CVE-2023-43472","published":"2023-12-05","fixed":"2.9.0","kev":false},{"cve":"CVE-2024-0520","published":"2024-06-06","fixed":"2.9.0","kev":false},{"cve":"CVE-2023-6568","published":"2023-12-07","fixed":"2.9.1","kev":false},{"cve":"CVE-2023-6018","published":"2023-11-16","fixed":"2.9.2","kev":false},{"cve":"CVE-2023-6709","published":"2023-12-12","fixed":"2.9.2","kev":false},{"cve":"CVE-2023-6753","published":"2023-12-13","fixed":"2.9.2","kev":false}],"package":"PyPI:mlflow"}}