MantisBT CVE-2026-62944
HIGHSeverity by source
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.
Lifecycle Timeline
3DescriptionCVE.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.
AnalysisAI
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.
Technical ContextAI
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.
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.
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
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
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
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
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
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
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allShare
External POC / Exploit Code
Leaving vuln.today
GHSA-h2wf-967x-gxvw