{
  "id": "CVE-2026-40597",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-40597",
  "published_at": "2026-05-22T19:29:46.728Z",
  "title": "MantisBT has a Content Security Policy bypass via attachments",
  "vendor": "mantisbt",
  "product": "mantisbt",
  "cvss": {
    "score": 7.6,
    "source": "cna",
    "vector": "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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 \u003cscript\u003e 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.",
  "cwe": "CWE-79",
  "cvss_by_source": {
    "cna": 7.6
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "mantisbt",
        "product": "mantisbt",
        "ranges": [
          "\u003c 2.28.2"
        ],
        "fixed_in": [
          "2.28.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade mantisbt to 2.28.2 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/mantisbt/mantisbt/security/advisories/GHSA-9c3j-xm6v-j7j3"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/mantisbt/mantisbt/commit/9e3bee2e7b909f4e3596985892b8bc8bee9e0bfe"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
