CVE-2026-33548

MantisBT has Stored HTML Injection / XSS when displaying Tags in Timeline

Published Mar 23, 2026 CVSS 4.0 · 8.6 High EPSS < 1% KEV · Not listed
Description
Mantis Bug Tracker (MantisBT) is an open source issue tracker. In version 2.28.0, improper escaping of tag names retrieved from History in Timeline (my_view_page.php) allows an attacker to inject HTML and, if CSP settings permit, achieve execution of arbitrary JavaScript, when displaying a tag that has been renamed or deleted. Version 2.28.1 contains a patch. Workarounds include editing offending History entries (using SQL) and wrapping `$this->tag_name` in a string_html_specialchars() call in IssueTagTimelineEvent::html().

Analysis

AI-generated

Technical impact

The vulnerability arises from improper escaping of tag names that are retrieved from the history log and displayed in the timeline view of MantisBT. An attacker who can create or rename a tag with specially crafted characters can cause the tag name to be rendered as live HTML when the timeline is viewed. If the site’s Content‑Security‑Policy allows inline scripts or execution of data‑originated code, this stored injection can lead to the execution of arbitrary JavaScript in the context of the logged‑in user, potentially allowing credential theft, session hijacking, or full compromise of the web application.

Affected Systems

Mantis Bug Tracker version 2.28.0 is vulnerable. The fix was applied in 2.28.1. Any instance running the unpatched version with the timeline feature enabled is at risk. The issue specifically affects the my_view_page.php script that renders issue timelines.

Risk and Exploitability

The CVSS v3 base score of 8.6 classifies the issue as high severity, with an attack vector that is user‑controllable via tag manipulation, requiring user interaction and legitimate access to the application’s interface. The EPSS score is below 1 %, suggesting few observed attacks, and the vulnerability is not listed in CISA’s KEV catalog. Nevertheless, the combination of stored XSS and the possibility of bypassing CSP makes it a worthwhile target for attackers with moderate resources.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to MantisBT 2.28.1 or newer.
  • If unable to upgrade immediately, edit the offending history entries directly in the database to remove or sanitize the malicious tag names.
  • Apply a code‑level fix by wrapping the $this->tag_name variable in a call to string_html_specialchars() in IssueTagTimelineEvent::html().
  • Configure a strict Content‑Security‑Policy to block inline scripts and restrict script origins to trusted sources.

Generated by OpenCVE AI on March 25, 2026 at 15:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-73vx-49mv-v8w5 MantisBT has Stored HTML Injection/XSS when displaying Tags in Timeline
History
Type Values Removed Values Added
CPEs cpe:2.3:a:mantisbt:mantisbt:2.28.0:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Mantisbt
Mantisbt mantisbt
Vendors & Products Mantisbt
Mantisbt mantisbt
Type Values Removed Values Added
Description Mantis Bug Tracker (MantisBT) is an open source issue tracker. In version 2.28.0, improper escaping of tag names retrieved from History in Timeline (my_view_page.php) allows an attacker to inject HTML and, if CSP settings permit, achieve execution of arbitrary JavaScript, when displaying a tag that has been renamed or deleted. Version 2.28.1 contains a patch. Workarounds include editing offending History entries (using SQL) and wrapping `$this->tag_name` in a string_html_specialchars() call in IssueTagTimelineEvent::html().
Title MantisBT has Stored HTML Injection / XSS when displaying Tags in Timeline
Weaknesses CWE-79
References
Metrics cvssV4_0

{'score': 8.6, 'vector': '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'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 24, 2026, 4:06 PM
Reserved
Mar 20, 2026, 6:05 PM
Status
Analyzed
Published
Mar 23, 2026, 8:16 PM
Modified
Jun 17, 2026, 10:37 AM