In short
- CVE-2026-40598 is a MEDIUM (CVSS 6.9) vulnerability affecting mantisbt/mantisbt.
- Chance of exploitation in the next 30 days (EPSS): 0.45%, higher than 38.9% of all vulnerabilities.
- Fix: update to 2.28.2 or later.
Description
Improper escaping of the redirection page (retrieved from the request's Referer header) allows an attacker to inject HTML.
While this is generally not directly actionable as modern browsers will URL-encode special characters, on some specific server configurations this could poison the cache, leading to cross-site scripting.
Impact
Cross-site scripting (XSS).
Patches
- b1ebc57763f104eb5f541b7b4d1ce6948168abd9
Workarounds
None
Credits
Thanks to siunam (Tang Cheuk Hei) for discovering and responsibly reporting the issue.
NVD description
Mantis Bug Tracker (MantisBT) is an open source issue tracker. In versions 2.28.1 and below, improper escaping of the redirection page (retrieved from the request's Referer header) allows an attacker to inject HTML. While this is generally not directly actionable as modern browsers will URL-encode special characters, on some specific server configurations this could poison the cache, leading to cross-site scripting. This issue has been fixed in version 2.28.2.
More vulnerabilities in mantisbt/mantisbt
See all →Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free