8.6high
MantisBT Vulnerable to Stored HTML Injection in Tag Delete Confirmation
- Severity
- 8.6high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.28% (higher than 22% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-fh48-f69w-7vmp
Description
Mantis Bug Tracker (MantisBT) is an open source issue tracker. In version 2.28.0, when deleting a Tag (tag_delete.php), improper escaping of its name when displaying the confirmation message allows an attacker to inject HTML and, if CSP settings permit, achieve execution of arbitrary JavaScript. Version 2.28.1 fixes the issue. Workarounds include reverting commit d6890320752ecf37bd74d11fe14fe7dc12335be9 and/or manually editing language files to remove the sprintf placeholder `%1$s` from `$s_tag_delete_message` string.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| mantisbt mantisbt | = 2.28.0, 2.28.0 | CVE List, NVD |
| mantisbt/mantisbt (Packagist) | from 2.28.0 before 2.28.1 | GitHub Advisory Database |
All scores
| GitHub_M | 8.6high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
Mantis Bug Tracker (MantisBT) is an open source issue tracker. In version 2.28.0, when deleting a Tag (tag_delete.php), improper escaping of its name when displaying the confirmation message allows an attacker to inject HTML and, if CSP settings permit, achieve execution of arbitrary JavaScript. Version 2.28.1 fixes the issue. Workarounds include reverting commit d6890320752ecf37bd74d11fe14fe7dc12335be9 and/or manually editing language files to remove the sprintf placeholder `%1$s` from `$s_tag_delete_message` string.
GitHub Advisory Database
Improper escaping of Tag name when deleting it in tag_delete.php allows an attacker to inject HTML and, if CSP settings permit, achieve execution of arbitrary JavaScript.
Impact
Cross-site scripting (XSS).
Patches
80990f43153167c73f11eb4b2bc7108d0c3d6b46
Workarounds
- Revert commit d6890320752ecf37bd74d11fe14fe7dc12335be9
- Manually edit language files to remove the sprintf placeholder
%1$sfrom $s_tag_delete_message string, for example withsed -r -i '/tag_delete_message/s/.%1\$s.//' -- lang/
Credits
MantisBT hanks Vishal Shukla for discovering and responsibly reporting the issue.
NVD (es)
Mantis Bug Tracker (MantisBT) es un sistema de seguimiento de incidencias de código abierto. En la versión 2.28.0, al eliminar una Etiqueta (tag_delete.php), un escape incorrecto de su nombre al mostrar el mensaje de confirmación permite a un atacante inyectar HTML y, si la configuración de CSP lo permite, lograr la ejecución de JavaScript arbitrario. La versión 2.28.1 corrige el problema. Las soluciones provisionales incluyen revertir el commit d6890320752ecf37bd74d11fe14fe7dc12335be9 y/o editar manualmente los archivos de idioma para eliminar el marcador de posición sprintf %1$s de la cadena $s_tag_delete_message.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-33517 changed 2026-03-24 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-fh48-f69w-7vmp changed 2026-03-25 | CC-BY-4.0 |
| NVD | CVE-2026-33517 changed 2026-06-17 | Public domain |