{"id":"CVE-2026-39960","aliases":["CVE-2026-39960","GHSA-qj6w-v29q-4rgx"],"related":[],"kind":"vulnerability","state":"published","title":"MantisBT is Vulnerable to Stored XSS through Custom Field Textarea Values","summary":"Mantis Bug Tracker (MantisBT) is an open source issue tracker. Versions 2.28.1 and below contain flawed logic that causes improper escaping of a textarea custom field's contents in the Update Issue page, (bug_update_page.php) allowing an attacker to inject HTML and, if CSP settings permit, execute arbitrary JavaScript when the page is loaded. This facilitates session theft, leading to admin account takeover, full project data access. In order to exploit this issue, a textarea-type custom field must be configured for the project, the attack must be carried out by an authenticated user with bug report permission (low privilege). This can affect any user viewing the bug edit form, including administrators. The issue has been fixed in version 2.28.2. If users cannot immediately upgrade, they can work around the issue by using the default Content-Security Policy, which blocks script execution.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Mantis Bug Tracker (MantisBT) is an open source issue tracker. Versions 2.28.1 and below contain flawed logic that causes improper escaping of a textarea custom field's contents in the Update Issue page, (bug_update_page.php) allowing an attacker to inject HTML and, if CSP settings permit, execute arbitrary JavaScript when the page is loaded. This facilitates session theft, leading to admin account takeover, full project data access. In order to exploit this issue, a textarea-type custom field must be configured for the project, the attack must be carried out by an authenticated user with bug report permission (low privilege). This can affect any user viewing the bug edit form, including administrators. The issue has been fixed in version 2.28.2. If users cannot immediately upgrade, they can work around the issue by using the default Content-Security Policy, which blocks script execution.","source":"cvelist"},{"lang":"en","text":"Improper escaping of a textarea custom field's contents in the Update Issue page (bug_update_page.php) allows an attacker to inject HTML and, if CSP settings permit, execute arbitrary JavaScript when the page is loaded.\n\n### Impact\nSession theft leading to admin account takeover, full project data access.\n\n- Precondition: A textarea-type custom field must be configured for the project\n- Attacker: Authenticated user with bug report permission (low privilege)\n- Victim: Any user viewing the bug edit form, including administrators\n\n### Patches\n- 5fec0f448b7a7d7d539a6adb6dccceac4e4e4ab7\n\n### Workarounds\nThe default Content-Security Policy will block script execution.\n\n### References\n- https://mantisbt.org/bugs/view.php?id=37003\n- This is related to [CVE-2024-34081](https://github.com/advisories/GHSA-wgx7-jp56-65mq).\n\n### Credits\nThanks to the following security researchers for independently discovering and responsibly reporting the issue, and providing a patch to fix it.\n- Thanks to Nozomu Sasaki (Paul) (@morimori-dev)\n- Tristan Madani (@TristanInSec) from Talence Security","format":"markdown","source":"ghsa"},{"lang":"es","text":"Mantis Bug Tracker (MantisBT) es un rastreador de problemas de código abierto. Las versiones 2.28.1 e inferiores contienen lógica defectuosa que causa un escape incorrecto del contenido de un campo personalizado de tipo textarea en la página de Actualización de Incidencias (bug_update_page.PHP), permitiendo a un atacante inyectar HTML y, si la configuración de CSP lo permite, ejecutar JavaScript arbitrario cuando se carga la página. Esto facilita el robo de sesión, lo que lleva a la toma de control de la cuenta de administrador y acceso total a los datos del proyecto. Para explotar este problema, debe configurarse un campo personalizado de tipo textarea para el proyecto, y el ataque debe ser llevado a cabo por un usuario autenticado con permiso para informar errores (privilegio bajo). Esto puede afectar a cualquier usuario que vea el formulario de edición de errores, incluidos los administradores. El problema ha sido solucionado en la versión 2.28.2. Si los usuarios no pueden actualizar inmediatamente, pueden solucionar el problema utilizando la Política de Seguridad de Contenido predeterminada, que bloquea la ejecución de scripts.","source":"nvd"}],"published":"2026-05-11T19:34:32.000Z","modified":"2026-09-10T03:51:06.801Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 2.28.2","status":"affected"}],"vendor":"mantisbt","product":"mantisbt","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.28.2"}],"ecosystem":"Packagist","package":"mantisbt/mantisbt","purl":"pkg:composer/mantisbt/mantisbt","source":"ghsa"}],"references":[{"url":"https://github.com/mantisbt/mantisbt/security/advisories/GHSA-qj6w-v29q-4rgx","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mantisbt/mantisbt/commit/5fec0f448b7a7d7d539a6adb6dccceac4e4e4ab7","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39960","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/mantisbt/mantisbt","tags":["package"],"sources":["ghsa"]},{"url":"https://mantisbt.org/bugs/view.php?id=37003","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-21T13:29:35.775Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-39960","url":"https://www.cve.org/CVERecord?id=CVE-2026-39960","licence":"CVE Terms of Use","modified":"2026-05-21T13:30:07.497Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qj6w-v29q-4rgx","url":"https://github.com/advisories/GHSA-qj6w-v29q-4rgx","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:06.801Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-39960","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39960","licence":"Public domain","modified":"2026-07-23T15:10:00.137Z"}],"updatedAt":"2026-11-25T22:59:22.076Z","epss":{"score":0.0023,"percentile":0.14765,"date":"2026-12-01T12:00:22.000Z"}}