MantisBT: Reflected XSS in admin/install.php via unescaped printf
Critical severity. Published 15 July 2026. Update mantisbt/mantisbt to 2.28.4 or later: composer update mantisbt/mantisbt.
Which versions are affected?
| Package | Affected versions | Fixed in |
|---|---|---|
| mantisbt/mantisbt (opens in a new tab) | <= 2.28.3 | 2.28.4 |
What should you do?
Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:
composer show mantisbt/mantisbt
composer auditAdvisory details
| Severity | Critical |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-52881 (opens in a new tab) |
| GHSA | GHSA-vcrw-4xvv-jh49 (opens in a new tab) |
| Weakness | CWE-79 |
What the advisory says
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 an unescaped printf format string. 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.
Source: GHSA-vcrw-4xvv-jh49 (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .
Other recent advisories for this package
- MantisBT: Remote Code Execution via eval() Class Hoisting in adm_config_set.php (high, 15 July 2026)
- MantisBT: SQL Injection via history_order Configuration Value (high, 15 July 2026)
- MantisBT: REST API unauthorized Issue status change (opens in a new tab) (medium, 15 July 2026)
- MantisBT: Stored XSS in print_all_bug_page_word.php (high, 15 July 2026)
- MantisBT: SOAP API Authentication Bypass with Privilege Escalation to Administrator (critical, 15 July 2026)