XSS and HTML Injection Vulnerability in Mantis Bug Tracker by MantisBT
CVE-2026-40597
7.6HIGH
What is CVE-2026-40597?
The Mantis Bug Tracker application, an open source issue tracker, is susceptible to an XSS and HTML injection vulnerability in versions 2.28.1 and earlier. An attacker could exploit any existing XSS vulnerability to bypass the Content Security Policy's script-src directive. This is achieved by uploading a maliciously crafted attachment to any issue. When the attachment is accessed via the file_download.php link, it may be downloaded with a valid JavaScript MIME type, leading to unauthorized script execution. The risk escalates as the uploaded payload is interpreted as JavaScript due to PHP's finfo function, which verifies MIME types. This vulnerability has been addressed in version 2.28.2.
Affected Version(s)
mantisbt < 2.28.2
