Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1110 CNY

100%

CVE-2026-40597— MantisBT has a Content Security Policy bypass via attachments

AI Predicted 7.5 Difficulty: Easy EPSS 0.06% · P20

Affected Version Matrix 1

VendorProductVersion RangeStatus
mantisbtmantisbt< 2.28.2affected
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-40597

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
MantisBT has a Content Security Policy bypass via attachments
Source: NVD (National Vulnerability Database)
Vulnerability 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.
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: NVD (National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
mantisbtmantisbt < 2.28.2 -

II. Public POCs for CVE-2026-40597

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-40597

登录查看更多情报信息。

Patches & Fixes for CVE-2026-40597 (1)

Vendor Advisories for CVE-2026-40597 (2)

Same Patch Batch · mantisbt · 2026-05-22 · 4 CVEs total

CVE-2026-40596MantisBT is vulnerable to XSS and potential account takeover via user font family preferen
CVE-2026-40598MantisBT has Potential Referer-Based Reflected HTML Injection / XSS in Tag Update Page
CVE-2026-40607MantisBT is Vulnerable to Stored XSS Through its Saved-Filter Owner Column

IV. Related Vulnerabilities

V. Comments for CVE-2026-40597

No comments yet


Leave a comment