CVE-2026-39960
Deferred Deferred - Pending Action
Stored XSS in MantisBT via Textarea Custom Field

Publication date: 2026-05-20

Last updated on: 2026-05-20

Assigner: GitHub, Inc.

Description
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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-05-20
Last Modified
2026-05-20
Generated
2026-06-10
AI Q&A
2026-05-21
EPSS Evaluated
2026-06-08
NVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
mantisbt mantis_bug_tracker to 2.28.2 (exc)
mantisbt mantis_bug_tracker 2.28.2
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

Mantis Bug Tracker (MantisBT) versions 2.28.1 and below have a vulnerability due to flawed logic that causes improper escaping of a textarea custom field's contents on the Update Issue page (bug_update_page.php). This flaw allows an attacker to inject HTML and, if Content-Security Policy (CSP) settings permit, execute arbitrary JavaScript when the page is loaded.

To exploit this vulnerability, a textarea-type custom field must be configured for the project, and the attacker must be an authenticated user with bug report permission, which is a low privilege level.

The injected script can lead to session theft, enabling the attacker to take over admin accounts and gain full access to project data.

Impact Analysis

This vulnerability can lead to session theft and administrative account takeover, which means an attacker can gain full access to project data.

Since the attacker only needs low privilege bug report permission to exploit the issue, it poses a significant risk to the confidentiality and integrity of the data managed by MantisBT.

Any user viewing the bug edit form, including administrators, can be affected by the injected malicious code.

Mitigation Strategies

To mitigate this vulnerability immediately, upgrade Mantis Bug Tracker to version 2.28.2 or later where the issue is fixed.

If upgrading is not possible right away, use the default Content-Security Policy (CSP) settings to block script execution, which works as a workaround to prevent exploitation.

Compliance Impact

The vulnerability in Mantis Bug Tracker allows an attacker to inject HTML and potentially execute arbitrary JavaScript, leading to session theft and admin account takeover. This can result in unauthorized access to full project data.

Such unauthorized access and potential data exposure could negatively impact compliance with common standards and regulations like GDPR and HIPAA, which require protection of sensitive data and prevention of unauthorized access.

However, the provided information does not explicitly mention the impact on compliance with these standards.

Detection Guidance

This vulnerability involves improper escaping of textarea custom field contents in the Update Issue page (bug_update_page.php) of Mantis Bug Tracker versions 2.28.1 and below, allowing stored XSS attacks.

To detect this vulnerability on your system, you can check the version of MantisBT installed and verify if it is 2.28.1 or below, as these versions are vulnerable.

Additionally, you can inspect the bug_update_page.php page for improper escaping of textarea custom fields by attempting to inject HTML or JavaScript payloads into a textarea-type custom field (requires authenticated user with bug report permission) and then viewing the bug edit form to see if the payload executes.

For command-line detection, you can use commands to check the installed version of MantisBT, for example:

  • grep -i version /path/to/mantisbt/configuration or version files
  • dpkg -l | grep mantisbt (on Debian-based systems if installed via package manager)
  • rpm -qa | grep mantisbt (on RPM-based systems)

To detect the vulnerability via web testing, you can use a web proxy or browser developer tools to inject a harmless HTML or JavaScript snippet into a textarea custom field and observe if it is executed when viewing the Update Issue page.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-39960. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart