6.9medium
MantisBT has Potential Referer-Based Reflected HTML Injection / XSS in Tag Update Page
- Severity
- 6.9medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.53% (higher than 38% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-6jh4-47v2-4g37
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| mantisbt mantisbt | < 2.28.2 | CVE List |
| mantisbt/mantisbt (Packagist) | before 2.28.2 | GitHub Advisory Database |
All scores
| GitHub_M | 6.9medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
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 (es)
Mantis Bug Tracker (MantisBT) es un rastreador de problemas de código abierto. En las versiones 2.28.1 e inferiores, un escape incorrecto de la página de redirección (obtenida del encabezado Referer de la solicitud) permite a un atacante inyectar HTML. Aunque esto generalmente no es directamente accionable, ya que los navegadores modernos codificarán URL los caracteres especiales, en algunas configuraciones de servidor específicas esto podría envenenar la caché, lo que llevaría a cross-site scripting. Este problema ha sido solucionado en la versión 2.28.2.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-40598 changed 2026-05-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-6jh4-47v2-4g37 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-40598 changed 2026-07-23 | Public domain |