MantisBT CVE-2026-40607
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as Manager+ user
-
DeliverySet profile real name to HTML/JS payload
-
ExploitSave filter as shared
-
ExecutionVictim opens Manage Filters page
-
PersistPayload executes in victim session
-
ImpactHijack 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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.
Primary rating from Vendor (https://github.com/mantisbt/mantisbt).
CVSS VectorVendor: https://github.com/mantisbt/mantisbt
Lifecycle Timeline
3DescriptionCVE.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_thresholdtoNOBODY
Credits
Thanks to siunam (Tang Cheuk Hei) for discovering and responsibly reporting the issue.
Executive ViewAI
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
GHSA-f633-865q-2mhh
NVD
CVE.org
EPSS
Exploit-DB