Advisory record · GHSA-9c3j-xm6v-j7j3

MantisBT has a Content Security Policy bypass via attachments

CVSS 7.6 HighEPSS 0.0050 · 42nd percentile

Published by the GitHub Advisory Database at 11 May 2026, 19:34 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
mantisbt/mantisbtPackagist<2.28.22.28.2
Identifiers
GHSA-9c3j-xm6v-j7j3 · CVE-2026-40597 · PKSA-vmj5-ycv9-cm2v
Weakness (CWE)
CWE-79 · CWE-358
Published
11 May 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

MantisBT versions before 2.28.2 (Packagist mantisbt/mantisbt) can be bypassed in their Content Security Policy script-src restriction through uploaded attachments. An attacker who can already inject XSS or HTML into a page could upload a crafted attachment to an issue; when it is served through file_download.php with a valid JavaScript MIME type, the browser executes it as script. Upgrade to version 2.28.2, which contains the fix. The source lists no workarounds.

Written 31 Oct 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.6 High 4.0 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 CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0050, the 42nd percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 13:59 UTC First seen by agentprime
  2. 31 Oct 2026, 13:59 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.