MantisBT Vulnerable to Stored XSS in File Download
Impact
Using show_inline=1 parameter and a valid file_show_inline_token CSRF token on file_download.php, an attacker can execute code by uploading a crafted XHTML attachment referencing a JavaScript attachment.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 2.28.2Ecosystem versions | 2.28.2 |
Version evidence: OSV · GHSA-p6fr-rxq7-xcg8
View original version evidence (76 explicit versions)
Original source description
Using show_inline=1 parameter and a valid file_show_inline_token CSRF token on file_download.php, an attacker can execute code by uploading a crafted XHTML attachment referencing a JavaScript attachment.
Impact
Cross-site scripting
Patches
- 26647b2e68ba30b9d7987d4e03d7a16416684bc2
Workarounds
None
Credits
Thanks to siunam (Tang Cheuk Hei) for discovering and responsibly reporting the issue.
References
- Security advisory github.com/mantisbt/mantisbt/security/advisories/GHSA-9c3j-xm6v-j7j3
- Security advisory github.com/mantisbt/mantisbt/security/advisories/GHSA-p6fr-rxq7-xcg8
- Security advisory nvd.nist.gov/vuln/detail/CVE-2026-44657
- Patch github.com/mantisbt/mantisbt/commit/26647b2e68ba30b9d7987d4e03d7a16416684bc2
- Source reference github.com/mantisbt/mantisbt
- Source reference mantisbt.org/bugs/view.php