MantisBT has a Content Security Policy bypass via attachments
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · High · Low
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| mantisbt | mantisbt | before 2.28.2 | 2.28.2 | Patch available | CNA |
| — | mantisbt/mantisbt (Packagist) | before 2.28.2 | 2.28.2 | Patch available | GHSA-9c3j-xm6v-j7j3 |
- mantisbt Vendormantisbt Affected before 2.28.2 Fixed in 2.28.2 Patch available CNA
- mantisbt/mantisbt (Packagist) Vendor— Affected before 2.28.2 Fixed in 2.28.2 Patch available GHSA-9c3j-xm6v-j7j3
Remediation
- Fix · CNA mantisbt (mantisbt) Fixed in 2.28.2
- Fix · GHSA-9c3j-xm6v-j7j3 mantisbt/mantisbt (Packagist) Fixed in 2.28.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-40597
- 2026-10-03 Alias added: GHSA-9c3j-xm6v-j7j3
References
More mantisbt vulnerabilities
- TI-2017-05251 MantisBT through 2.3.0 allows arbitrary password reset and unauthenticated admin access… CVSS 3.1HIGH 8.8
- TI-2026-29334 MantisBT has Potential Referer-Based Reflected HTML Injection / XSS in Tag Update Page CVSS 4.0MEDIUM 6.9
- TI-2014-05966 The XmlImportExport plugin in MantisBT 1.2.17 and earlier allows remote attackers to… CVSS 2.0HIGH 7.5
- TI-2026-27192 MantisBT Bugnote Revision Page Leaks Private Issue Metadata After Issue Access Is Revoked CVSS 4.0MEDIUM 5.3
- TI-2026-25495 MantisBT: Authorization Bypass in Global Profile Creation CVSS 4.0MEDIUM 5.3
- TI-2026-26676 MantisBT: Privilege Escalation from Manager to Administrator CVSS 4.0MEDIUM 5.1
Sources
- CVE-2026-40597 · CVE Program
- CVE-2026-40597 · NVD
- FIRST EPSS
- GHSA-9c3j-xm6v-j7j3 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences