Skip to main content

MantisBT CVE-2026-62944

HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-07-15 https://github.com/mantisbt/mantisbt GHSA-h2wf-967x-gxvw
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to MantisBT
  2. Delivery
    Upload image attachment with crafted filename
  3. Exploit
    Payload stored in bug record
  4. Execution
    Victim opens HTML export page
  5. Persist
    alt attribute breakout injects onload handler
  6. Impact
    Script executes in victim browser (CSP permitting)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires an authenticated MantisBT account with permission to add file attachments to a bug, and the ability to control the uploaded image's filename to embed an attribute-breakout payload (e.g. probe." onload="alert(1)). Execution is not immediate: a second user must view the specific HTML/Word export endpoint print_all_bug_page_word.php?type_page=html&export=1 for the affected bug, so victim interaction is mandatory. Exploitation is further limited by MantisBT's Content Security Policy - a strict CSP that blocks inline/event-handler scripts can prevent the injected code from running - and by the requirement that the target instance be at version 2.28.3 or earlier.

Impact

No CVSS score or vector was provided by the source, so severity must be inferred. This is a stored XSS requiring an authenticated user to upload a maliciously named attachment, with execution deferred until a victim opens the HTML export page, so both attacker authentication and victim interaction are required - this lowers real-world risk relative to an unauthenticated network flaw. The vendor explicitly notes that impact is limited by MantisBT's Content Security Policy, which can block inline event-handler execution depending on the deployment's CSP configuration, further reducing practical exploitability. No EPSS score, KEV listing, or public POC was supplied; treat this as a moderate-priority hardening fix rather than an emergency. Note the conflict to verify: the description says 'any authenticated user' but no CVSS vector is present to confirm the privilege level, so the authentication requirement is stated by the advisory text rather than a scored vector.

Exploit ScenarioDerived

An authenticated user with attachment-upload rights adds an image to a bug report using a crafted filename such as probe." onload="alert(1), storing the payload. When a project manager or other user later opens the HTML export of that report, the malformed IMG tag executes the injected script in their session, subject to whatever the site's CSP allows. No public POC is identified, but the technique is straightforward given the disclosed filename example.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 15, 2026

Stored cross-site scripting in MantisBT (versions <= 2.28.3) lets an authenticated user inject arbitrary HTML/JavaScript through a crafted image-attachment filename that breaks out of an IMG tag's alt attribute. The payload executes when any user (including higher-privileged reviewers) renders the Word/HTML export view at print_all_bug_page_word.php?type_page=html&export=1, though real-world impact is constrained by MantisBT's Content Security Policy. There is no public exploit identified at time of analysis, and the flaw is fixed in 2.28.4.

RemediationAI

Vendor-released patch: upgrade to MantisBT 2.28.4, which adds output encoding (string_html_specialchars/htmlspecialchars) around the attachment alt text, display name, path, and download URL in print_all_bug_page_word.php (fixing commit bdd0e364f62759de272dfd4c89b4f51d27be9daa; advisory GHSA-h2wf-967x-gxvw). The vendor lists no official workarounds. Since exploitation depends on an uploaded image attachment with a crafted filename rendered on the HTML export page, interim compensating controls include restricting attachment-upload privileges to trusted users, validating/sanitizing uploaded filenames, avoiding use of the HTML/Word export view (print_all_bug_page_word.php?type_page=html&export=1) until patched, and enforcing a strict Content Security Policy without unsafe-inline to block inline event-handler execution - noting that these controls reduce usability (blocking exports or attachments) and that a permissive CSP would leave the flaw exploitable.

Affected Packages

composer mantisbt/mantisbt fix: 2.28.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in composer

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

MantisBT is a widely used open-source, PHP-based web bug-tracking system (packaged as composer/mantisbt/mantisbt). The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation): in print_all_bug_page_word.php the attachment's alt text and related fields were echoed directly into HTML without output encoding. The vulnerable line rendered <img src="..." alt="', $t_attachment['alt'], '" /> with no escaping, so a filename containing a double-quote (e.g. probe." onload="alert(1)) closes the alt attribute and introduces a new event-handler attribute. The vendor fix wraps the download URL, path, display name, and alt value in string_html_specialchars()/htmlspecialchars(), neutralizing quote and angle-bracket breakout in the export renderer.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

vuln.today AI 5.4 MEDIUM

Authenticated user stores the payload (PR:L) but a victim must open the export page (UI:R); XSS crosses into the victim's browser context (S:C) with limited C/I impact partly curbed by CSP.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

DescriptionCVE.org

A missing output encoding call in print_all_bug_page_word.php allows any authenticated user to inject arbitrary HTML into an IMG tag's *alt* attribute via an image attachment with a crafted filename such as probe." onload="alert(1).

When any user views the HTML export page (print_all_bug_page_word.php?type_page=html&export=1), the rendered IMG tag becomes <img src="..." alt="" onload="alert(1)" />, breaking out of the alt attribute.

Impact

Cross-site scripting.

Impact is limited by MantisBT's Content Security Policy.

Patches

  • https://github.com/mantisbt/mantisbt/commit/bdd0e364f62759de272dfd4c89b4f51d27be9daa

Workarounds

None

Resources

  • https://mantisbt.org/bugs/view.php?id=37234

Credits

MantisBT thanks the Dracosec Research Limited team (Chris Chan, Krecendo Hui, William Lam) for discovering and responsibly reporting the issue.

Executive ViewAI

Why It Matters

MantisBT versions 2.28.3 and earlier contain a stored cross-site scripting vulnerability allowing authenticated users to inject malicious code into bug reports that executes when other team members export or review issues. This threatens the security posture of development teams by enabling credential theft and lateral movement from legitimate developer or reviewer accounts. Organizations running these versions must upgrade immediately to eliminate risk to development infrastructure and engineering collaboration tools.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
Medium
popular open-source bug tracker, common but not ubiquitous
Threat Intel
1
1 source
Data Quality
2 sources
Confidence: Low
CVE.org GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Affected Products (CPE)CVE.org

pkg:composer/mantisbt_mantisbt

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy