Skip to main content

MantisBT CVE-2026-40607

HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-05-11 https://github.com/mantisbt/mantisbt GHSA-f633-865q-2mhh
7.5
CVSS 4.0 · Vendor: https://github.com/mantisbt/mantisbt
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as Manager+ user
  2. Delivery
    Set profile real name to HTML/JS payload
  3. Exploit
    Save filter as shared
  4. Execution
    Victim opens Manage Filters page
  5. Persist
    Payload executes in victim session
  6. Impact
    Hijack session or act as victim

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Two concrete prerequisites must both hold: (1) the instance must run with $g_show_user_realname = ON (not the safest default) so the owner column renders the user-controlled real name; and (2) the attacker must hold an account permitted to save shared/public filters - by default the Manager access level or above per $g_stored_query_create_shared_threshold. The attacker sets their profile real name to an HTML payload and stores a shared filter; the payload fires when a victim views the Manage Filters page. Limiting factors: high required privilege (PR:H - trusted internal Manager+ account), the non-default real-name display configuration, and reliance on a victim loading the shared-filter list. This makes it primarily an insider/privilege-abuse and stored-payload risk rather than remote unauthenticated compromise.

Impact

Signals are consistent and point to a genuine-but-constrained issue rather than a top-priority emergency. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:H/UI:N, base 7.5) reflects a network-reachable bug that nonetheless requires high privileges (PR:H) and a specific attack requirement (AT:P) - the non-default $g_show_user_realname = ON configuration plus the ability to save shared filters. EPSS is very low at 0.04% (12th percentile), it is not in CISA KEV, and no public exploit code is identified, so there is no evidence of active or imminent widespread exploitation. The vendor's high confidentiality/integrity impact (VC:H/VI:H) is somewhat generous for a stored XSS whose practical impact is session-scoped script execution; a more conservative reading would rate impact as limited. Net: patch in a normal cycle; it is not a low-real-risk false alarm, but the privilege and configuration prerequisites materially reduce exposure.

Exploit ScenarioDerived

On a MantisBT instance with $g_show_user_realname = ON, a Manager-level user sets their real name to a value containing an HTML/script payload and saves a filter as shared. When another user or administrator opens the Manage Filters page, the unescaped owner cell executes the attacker's JavaScript in their authenticated session, enabling session/CSRF-token theft or actions on their behalf. No public proof-of-concept is identified, but the injection point is straightforward and the diff clearly reveals it.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 23, 2026

Stored cross-site scripting in MantisBT (versions 2.1.0 through 2.28.1) allows a privileged user to inject arbitrary HTML/JavaScript via their account's real name, which is rendered unescaped in the saved-filter owner column of the Manage Filters page. Exploitation is limited to deployments where $g_show_user_realname is enabled and requires an account permitted to save shared filters (Manager access or above by default), so it is not a drive-by unauthenticated flaw. There is no public exploit identified at time of analysis, EPSS is negligible (0.04%), and it is not listed in CISA KEV.

RemediationAI

Vendor-released patch: upgrade to MantisBT 2.28.2, which applies commit 44f490bcf20fd491c1b8f3fc9dd041d8c2a30010 to HTML-encode the filter owner via string_html_specialchars() (https://github.com/mantisbt/mantisbt/commit/44f490bcf20fd491c1b8f3fc9dd041d8c2a30010). If you cannot upgrade immediately, the vendor documents two workarounds: set $g_show_user_realname = OFF in config_inc.php so usernames (not attacker-controllable real names) are displayed, which eliminates the injection vector at the cost of losing real-name display; or set $g_stored_query_create_threshold and $g_stored_query_create_shared_threshold to NOBODY to prevent users from storing filters, which stops the payload from being saved but disables the saved/shared-filter feature for all users. Refer to advisory GHSA-f633-865q-2mhh for full guidance.

Affected Packages

composer mantisbt/mantisbt fix: 2.28.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in composer

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

MantisBT is a widely used PHP-based open-source bug/issue tracking system (package pkg:composer/mantisbt_mantisbt). The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation). In manage_filter_page.php, the table_print_filter_row() function emitted the filter owner via user_get_name() directly into an HTML <td> without output encoding. When $g_show_user_realname = ON, user_get_name() returns the user's configured real name rather than a constrained username, so an attacker-controlled real-name string containing HTML is reflected verbatim into the DOM and executed in the browser of anyone viewing the shared saved filters list. The fix wraps the value in string_html_specialchars() to HTML-encode the output.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/mantisbt/mantisbt) PRIMARY 7.5 HIGH
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N
vuln.today AI 4.4 MEDIUM

AC:H for the non-default realname configuration requirement, PR:H because only Manager+ can save shared filters, S:C and C:L/I:L for browser-scoped stored XSS impact.

3.1 AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (https://github.com/mantisbt/mantisbt).

CVSS VectorVendor: https://github.com/mantisbt/mantisbt

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
CVSS changed
Jul 23, 2026 - 11:22 NVD
7.5 (HIGH)
CVE Published
May 11, 2026 - 19:35 cve.org
HIGH 7.5
CVE Published
May 11, 2026 - 19:35 nvd
HIGH

DescriptionCVE.org

Incorrect escaping of a saved filter's owner allows an attacker to inject arbitrary HTML on systems where $g_show_user_realname = ON.

Impact

Cross-site scripting (XSS).

Note that By default, only users with *Manager* access level or above can save their filters publicly

Patches

  • 44f490bcf20fd491c1b8f3fc9dd041d8c2a30010

Workarounds

  • Prevent display of users' real name (set $g_ show_user_realname = OFF; in configuration)
  • Restrict ability to store filters (set $g_stored_query_create_threshold / $g_stored_query_create_shared_threshold to NOBODY

Credits

Thanks to siunam (Tang Cheuk Hei) for discovering and responsibly reporting the issue.

Executive ViewAI

Why It Matters

MantisBT versions 2.1.0 through 2.28.1 contain a stored cross-site scripting vulnerability affecting deployments with user realname display enabled, though no public exploit identified at time of analysis. Privileged users (managers and above) can inject malicious scripts through their profile, potentially enabling lateral attacks against other administrators. Organizations running affected versions should apply available patches to eliminate insider risk.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Prevalence
Medium
popular open-source bug tracker, common but not ubiquitous in enterprises
Threat Intel
1
1 source
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Affected Products (CPE)CVE.org

pkg:composer/mantisbt_mantisbt

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy