CVE-2026-40597
Last modified
CVE-2026-40597 is a high-severity vulnerability rated 7.6/10 on the CVSS scale. Mantis Bug Tracker (MantisBT) is an open source issue tracker. In versions 2.28.1 and below, given any pre-existing XSS / HTML injection vulnerability, an attacker can bypass the Content Security Policy's script-src directive by uploading a crafted attachment to any issue that, when accessed via the file_download.php link, will be downloaded with a valid JavaScript MIME type resulting in script execution. EPSS estimates a 0.50% chance of exploitation in the next 30 days.
Description
Mantis Bug Tracker (MantisBT) is an open source issue tracker. In versions 2.28.1 and below, given any pre-existing XSS / HTML injection vulnerability, an attacker can bypass the Content Security Policy's script-src directive by uploading a crafted attachment to any issue that, when accessed via the file_download.php link, will be downloaded with a valid JavaScript MIME type resulting in script execution. The uploaded payload must be sniffed as a valid JavaScript MIME type by PHP finfo (see file_create_finfo() API function). Non-JavaScript MIME types will not get imported in a <script> tag by the browser, due to response header X-Content-Type-Options being set to nosniff, which requires all imported JavaScript files to be a valid JavaScript MIME type. This issue has been fixed in version 2.28.2.
Metrics
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-40597?
How severe is CVE-2026-40597?
How do I fix CVE-2026-40597?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-40591FreeScout is a free self-hosted help desk and shared mailbox…7.1
- CVE-2026-40592FreeScout is a free self-hosted help desk and shared mailbox…5.9
- CVE-2026-40593ChurchCRM is an open-source church management system. In ver…4.8
- CVE-2026-40594pyLoad is a free and open-source download manager written in…4.8
- CVE-2026-40595Chartbrew is an open-source web application that can connect…7.5
- CVE-2026-40596Mantis Bug Tracker (MantisBT) is an open source issue tracke…7.2
- CVE-2026-40598Mantis Bug Tracker (MantisBT) is an open source issue tracke…6.9
- CVE-2026-40599ClearanceKit intercepts file-system access events on macOS a…7.1
- CVE-2026-4060The Geo Mashup plugin for WordPress is vulnerable to Time-Ba…7.5
- CVE-2026-40600Chartbrew is an open-source web application that can connect…8.1
- CVE-2026-40601Chartbrew is an open-source web application that can connect…7.5
- CVE-2026-40602The Home Assistant Command-line interface (hass-cli) is a co…5.6
Are you affected by CVE-2026-40597?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
