Improperly Implemented Security Check for Standard Affecting mantisbt/mantisbt package, versions <2.28.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.5% (39th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-MANTISBTMANTISBT-16642110
  • published12 May 2026
  • disclosed11 May 2026
  • creditsiunam321

Introduced: 11 May 2026

CVE-2026-40597  (opens in a new tab)
CWE-358  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade mantisbt/mantisbt to version 2.28.2 or higher.

Overview

mantisbt/mantisbt is a mantis bug tracker.

Affected versions of this package are vulnerable to Improperly Implemented Security Check for Standard in the file_download.php process. An attacker can execute arbitrary JavaScript code in the context of a user's browser by uploading a specially crafted attachment that is interpreted as a valid JavaScript MIME type, thereby bypassing the Content Security Policy's script restrictions when accessed. This is only exploitable if there is an existing cross-site scripting or HTML injection vulnerability present in the environment.

CVSS Base Scores

version 4.0
version 3.1