6.6medium
MantisBT Cross-site Scripting vulnerability
- Severity
- 6.6medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.64% (higher than 52% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-wgx7-jp56-65mq
Description
MantisBT (Mantis Bug Tracker) is an open source issue tracker. Improper escaping of a custom field's name allows an attacker to inject HTML and, if CSP settings permit, achieve execution of arbitrary JavaScript when resolving or closing issues (`bug_change_status_page.php`) belonging to a project linking said custom field, viewing issues (`view_all_bug_page.php`) when the custom field is displayed as a column, or printing issues (`print_all_bug_page.php`) when the custom field is displayed as a column. Version 2.26.2 contains a patch for the issue. As a workaround, ensure Custom Field Names do not contain HTML tags.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| mantisbt mantisbt | < 2.26.2, before 2.26.2 | CVE List, NVD |
| mantisbt/mantisbt (Packagist) | before 2.26.2 | GitHub Advisory Database |
All scores
| GitHub_M | 6.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:L |
| GitHub | 6.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:L |
| NVD | 4.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
MantisBT (Mantis Bug Tracker) is an open source issue tracker. Improper escaping of a custom field's name allows an attacker to inject HTML and, if CSP settings permit, achieve execution of arbitrary JavaScript when resolving or closing issues (`bug_change_status_page.php`) belonging to a project linking said custom field, viewing issues (`view_all_bug_page.php`) when the custom field is displayed as a column, or printing issues (`print_all_bug_page.php`) when the custom field is displayed as a column. Version 2.26.2 contains a patch for the issue. As a workaround, ensure Custom Field Names do not contain HTML tags.
GitHub Advisory Database
Improper escaping of a custom field's name allows an attacker to inject HTML and, if CSP settings permit, achieve execution of arbitrary JavaScript when:
- resolving or closing issues (bug_change_status_page.php) belonging to a project linking said custom field
- viewing issues (view_all_bug_page.php) when the custom field is displayed as a column
- printing issues (print_all_bug_page.php) when the custom field is displayed as a column
Impact
Cross-site scripting (XSS).
Patches
https://github.com/mantisbt/mantisbt/commit/447a521aae0f82f791b8116a14a20e276df739be
Workarounds
Ensure Custom Field Names do not contain HTML tags.
References
- https://mantisbt.org/bugs/view.php?id=34432
- This is related to CVE-2020-25830 (same root cause, different affected pages)
NVD (es)
MantisBT (Mantis Bug Tracker) es un rastreador de problemas de código abierto. El escape inadecuado del nombre de un campo personalizado permite a un atacante inyectar HTML y, si la configuración del CSP lo permite, lograr la ejecución de JavaScript arbitrario al resolver o cerrar problemas (`bug_change_status_page.php`) pertenecientes a un proyecto que vincula dicho campo personalizado, problemas de visualización (` view_all_bug_page.php`) cuando el campo personalizado se muestra como una columna, o problemas de impresión (`print_all_bug_page.php`) cuando el campo personalizado se muestra como una columna. La versión 2.26.2 contiene un parche para el problema. Como workaround, asegúrese de que los nombres de campos personalizados no contengan etiquetas HTML.
References
| https://github.com/mantisbt/mantisbt/security/advisories/GHSA-wgx7-jp56-65mq | patch, vendor-advisory, web | |
| https://github.com/mantisbt/mantisbt/commit/447a521aae0f82f791b8116a14a20e276df739be | patch, web | |
| https://mantisbt.org/bugs/view.php?id=34432 | issue-tracking, mitigation, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-34081 | advisory | |
| https://github.com/mantisbt/mantisbt | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-34081 changed 2024-08-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-wgx7-jp56-65mq changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2024-34081 changed 2026-06-17 | Public domain |