PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-40597 mantisbt CVE debrief

CVE-2026-40597 is a security vulnerability in Mantis Bug Tracker that allows for XSS / HTML injection attacks via crafted attachments. The vulnerability affects versions 2.28.1 and below. An attacker can bypass the Content Security Policy's script-src directive by uploading a crafted attachment to any issue, which when accessed via the file_download.php link, will be downloaded with a valid JavaScript MIME type resulting in script execution. The vulnerability has been fixed in version 2.28.2.

Vendor
mantisbt
Product
Unknown
CVSS
HIGH 7.6
CISA KEV
Not listed in stored evidence
Original CVE published
2026-05-22
Original CVE updated
2026-07-23
Advisory published
2026-05-22
Advisory updated
2026-07-23

Who should care

Users of Mantis Bug Tracker versions 2.28.1 and below should be aware of this vulnerability and take steps to mitigate it. This includes updating to version 2.28.2 or later, restricting file uploads to only allow specific MIME types, and implementing additional security measures such as Content Security Policy and input validation.

Technical summary

The vulnerability in Mantis Bug Tracker versions 2.28.1 and below allows for XSS / HTML injection attacks via crafted attachments. An attacker can bypass the Content Security Policy's script-src directive by uploading a crafted attachment to any issue, which when accessed via the file_download.php link, will be downloaded with a valid JavaScript MIME type resulting in script execution. This occurs because the Content Security Policy's script-src directive can be bypassed when a crafted attachment is uploaded and accessed. The affected product is Mantis Bug Tracker versions 2.28.1 and below. Users should update to version 2.28.2 or later and implement additional security measures such as Content Security Policy and input validation. The vulnerability was reported by an unknown source and has been fixed in version 2.28.2. Evidence is limited, and defenders should verify the affected scope and severity.

Defensive priority

High

Recommended defensive actions

  • Update to version 2.28.2 or later
  • Restrict file uploads to only allow specific MIME types
  • Implement additional security measures such as Content Security Policy and input validation
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up

Evidence notes

The vulnerability was reported by an unknown source and has been fixed in version 2.28.2. Evidence is limited, and defenders should verify the affected scope and severity. The Content Security Policy's script-src directive can be bypassed by uploading a crafted attachment to any issue. The uploaded payload must be sniffed as a valid JavaScript MIME type by PHP finfo.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-40597 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-40597

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-40597 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-40597

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.