CVE-2026-52847 — MantisBT: Reflected XSS in mantisbt/mantisbt
MantisBT: Reflected XSS in admin/install.php
Does your project use an affected mantisbt/mantisbt version?
Paste your composer.lock to check it for CVE-2026-52847 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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 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
Advisory Timeline
- First published July 15, 2026 (134 days ago).
- Last revised July 15, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "mantisbt/mantisbt:^2.28.4"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Packagist (1).
| Package | Fixed In |
|---|---|
| mantisbt/mantisbt Packagist · Affected: 2.10.0, 2.10.1, 2.11.0, 2.11.1 (+74 more) | 2.28.4 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-79Cross-site Scripting (XSS)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.9 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N
References
- https://github.com/mantisbt/mantisbt/security/advisories/GHSA-77x8-3v3h-hrhvWEB
- https://github.com/mantisbt/mantisbt/commit/0f32ceabadc745239754962df91a51d5d51e3fd7WEB
- https://github.com/mantisbt/mantisbt/commit/f2191a0d8ce438bf74171d496cf721dae025a5c0WEB
- https://github.com/mantisbt/mantisbtPACKAGE
- https://mantisbt.org/bugs/view.php?id=37103WEB
Frequently Asked Questions
- What is CVE-2026-52847?
- MantisBT: Reflected XSS in admin/install.php. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 8.9/10).
- How do I check if my project is affected by CVE-2026-52847?
- CVE-2026-52847 affects mantisbt/mantisbt. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-52847 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
Also Known As
Related CVEs
- CVE-2026-47156CRITICAL
MantisBT: SOAP API Authentication Bypass with Privilege Escalation to Administrator
- CVE-2026-30849CRITICAL
MantisBT is vulnerable to authentication bypass through the SOAP API on MySQL
- CVE-2026-63412CRITICAL
Jane: Instantiation RCE via query parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)
- CVE-2026-52881CRITICAL
MantisBT: Reflected XSS in admin/install.php via unescaped printf
- CVE-2026-63413CRITICAL
Jane: Instantiation RCE via header parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)
- CVE-2025-47776HIGH
MantisBT vulnerable to authentication bypass for some passwords due to PHP type juggling
- CVE-2026-40596HIGH
MantisBT is Vulnerable to XSS leading to account takeover via updating a user's font family preference