MantisBT CVE-2026-52847
CRITICALSeverity by source
Network-reachable unauthenticated reflected XSS needing victim interaction (UI:R) with a scope change into the admin origin; CSP limits impact to low confidentiality/integrity, no availability effect.
Lifecycle Timeline
3DescriptionCVE.org
MantisBT 2.28.3 and earlier contains six reflected XSS injection points in /admin/install.php. User-supplied parameters are echoed into HTML without escaping via print_test_result(). No authentication is required.
A Content Security Policy (script-src 'self') prevents inline JavaScript execution, but the CSP is missing a form-action directive, allowing exploitation via credential-phishing form injection and <meta> open redirects.
Impact
- Credential phishing: Attacker crafts a URL that renders a fake login form on the real MantisBT admin page. Admin credentials are submitted to an attacker-controlled server.
- Open redirect: Victim is silently redirected to a phishing or malware site.
- UI manipulation: CSS injection can hide legitimate page content and overlay attacker-controlled HTML, enabling social engineering.
Patches
- https://github.com/mantisbt/mantisbt/commit/0f32ceabadc745239754962df91a51d5d51e3fd7
- https://github.com/mantisbt/mantisbt/commit/f2191a0d8ce438bf74171d496cf721dae025a5c0
Workarounds
Remove the /admin directory, as recommended in the Admin Guide
Resources
- https://mantisbt.org/bugs/view.php?id=37103
- related advisory GHSA-vcrw-4xvv-jh49
Credits
McCaulay Hudson (@_McCaulay) of watchTowr
Articles & Coverage 1
AnalysisAI
Reflected cross-site scripting in MantisBT's /admin/install.php (versions 2.28.3 and earlier) lets remote attackers inject HTML through six unescaped, user-supplied parameters echoed by print_test_result(). Although the page's Content-Security-Policy (script-src 'self') blocks inline JavaScript, the missing form-action directive permits credential-phishing form injection, <meta>-based open redirects, and CSS overlay attacks against the trusted admin origin. The advisory states no authentication is required; there is no public exploit identified at time of analysis and it is not listed in CISA KEV.
Technical ContextAI
MantisBT is a widely used PHP-based open-source bug-tracking application (packaged as composer/mantisbt/mantisbt). The flaw is a classic CWE-79 Improper Neutralization of Input During Web Page Generation: the installer helper function print_test_result() concatenated attacker-controlled request parameters directly into the HTML response ('<br>' . $p_message) without output encoding. The fix in commit 0f32cea wraps the message in string_html_specialchars(), neutralizing the injected markup. Notably the deployment ships a partial CSP - script-src 'self' stops reflected inline <script>/event-handler execution - but because CSP form-action was not set, injected <form> elements can post to arbitrary external hosts and <meta http-equiv=refresh> redirects are unrestricted, so the missing directive converts an otherwise script-neutered XSS into a usable phishing and open-redirect primitive.
RemediationAI
Vendor-released patch: upgrade to MantisBT 2.28.4, which applies output encoding via string_html_specialchars() in print_test_result() (commits 0f32ceabadc745239754962df91a51d5d51e3fd7 and f2191a0d8ce438bf74171d496cf721dae025a5c0). If immediate upgrade is not possible, the vendor-recommended workaround is to remove the /admin directory after installation per the Admin Guide (https://mantisbt.org/docs/master/en-US/Admin_Guide/html-desktop/#admin.install.postcommon); this eliminates the vulnerable installer entirely with the trade-off that you must temporarily restore it to run future upgrades or diagnostics. As an additional compensating control, restrict access to /admin/install.php at the web-server or WAF layer (IP allow-listing or authentication) and add a CSP form-action 'self' directive to blunt the phishing and redirect vector, noting this does not fix the underlying reflection. See advisory GHSA-77x8-3v3h-hrhv for the canonical fix guidance.
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-77x8-3v3h-hrhv