# MantisBT: Reflected XSS in admin/install.php via unescaped printf

Critical severity, published 2026-07-15. Update mantisbt/mantisbt to 2.28.4 or later: composer update mantisbt/mantisbt.

Canonical URL: https://buzzphp.com/security/ghsa-vcrw-4xvv-jh49 · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | critical |
| Published | 2026-07-15 |
| Updated | 2026-07-15 |
| CVE | [CVE-2026-52881](https://nvd.nist.gov/vuln/detail/CVE-2026-52881) |
| GHSA | [GHSA-vcrw-4xvv-jh49](https://github.com/advisories/GHSA-vcrw-4xvv-jh49) |
| Weakness | CWE-79 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| mantisbt/mantisbt | <= 2.28.3 | 2.28.4 |

## What to do

Update mantisbt/mantisbt to 2.28.4 or later: composer update mantisbt/mantisbt.

Check which version you run with `composer show mantisbt/mantisbt`, and every affected package with `composer audit`.

## About this advisory

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.

## Links

- [GHSA-vcrw-4xvv-jh49 on GitHub](https://github.com/advisories/GHSA-vcrw-4xvv-jh49)
- [CVE-2026-52881 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-52881)
- [All Composer security advisories](https://buzzphp.com/security)
