MantisBT CVE-2026-40596
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate to MantisBT
-
DeliverySubmit tampered font_family preference
-
ExploitStore HTML/script payload in config
-
InstallPayload rendered in every page head
-
C2Chain CSP bypass via JS-typed attachment
-
ExecuteExecute script in victim session
-
ImpactHijack account
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 | Requires a valid authenticated MantisBT account (PR:L) and the ability to submit a manually tampered account-preferences form because the injected value must be placed in the 'font_family' field, which the UI normally restricts to a fixed font list - the vulnerable code path is reached only by bypassing the client-side selector. Exploitation is limited by several factors: the malicious font is stored in the attacker's own per-user configuration, so it is effectively self-XSS unless combined with a cross-user delivery/CSRF path; achieving actual script execution (not just HTML injection) further requires the separate CSP bypass in GHSA-9c3j-xm6v-j7j3 to be present, since MantisBT sets X-Content-Type-Options: nosniff and a script-src CSP; and the vector includes a passive user-interaction/attack requirement (UI:P/AT:P), meaning a victim must load the affected page. |
| Impact | Signals are broadly consistent in pointing to a real-but-not-urgent issue. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:P/VC:H/VI:L/VA:L/SC:H/SI:H/SA:L, score 7.2) reflects network reach but requires authentication (PR:L), a passive user-interaction/attack-requirement condition (UI:P, AT:P), and yields high confidentiality impact with a subsequent-system impact consistent with account takeover when chained. EPSS is only 0.05% (16th percentile) and SSVC records Exploitation: none, Automatable: no, Technical Impact: partial - so no evidence of active or automatable exploitation. There is no KEV listing and no POC referenced in the provided data. A key nuance: the injected font is stored in the ATTACKER's own per-user configuration (config_set with $f_user_id), so on its own this is largely self-XSS; the elevated impact and account-takeover claim depend on chaining the CSP bypass (and the patch also adds CSRF tokens to login flows, implying an intended cross-user escalation path). Treat the 7.2/account-takeover framing as accurate only when the companion CSP-bypass vulnerability is also present and unpatched; standalone, real-world risk is modest. |
| Exploit ScenarioDerived | An authenticated MantisBT user edits their account preferences and submits a tampered 'font_family' value containing an HTML/script payload, which is stored and rendered into the page head on subsequent views. On its own this executes in the attacker's own session; combined with the CSP bypass (uploading an attachment sniffed as JavaScript) and a cross-user delivery/CSRF vector, the script can run in a victim's authenticated context and drive account takeover. No public proof-of-concept is identified at time of analysis. |
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 (Composer package mantisbt/mantisbt, versions <= 2.28.1) allows any authenticated user to inject arbitrary HTML/JavaScript through the 'font_family' account preference, which is then rendered into the CSS/head of every MantisBT page. Because the account preference update accepted an arbitrary font string without validating it against the allowed font list, the payload persists and executes whenever the affected page context is loaded. There is no public exploit identified at time of analysis and it is not in CISA KEV; EPSS is very low (0.05%), but chained with the companion CSP-bypass advisory GHSA-9c3j-xm6v-j7j3 the flaw can escalate to full account takeover.
RemediationAI
Vendor-released patch: upgrade to MantisBT 2.28.2, which contains the fixes (font_family validation commit 9e8409cdd979eba86ef532756fc47c1d8112d22d and the CSP-bypass fix commit 9e3bee2e7b909f4e3596985892b8bc8bee9e0bfe). The advisory explicitly states no workarounds are available, so patching is the only supported remediation. If an immediate upgrade is not possible, compensating controls are limited: restrict who holds accounts (this requires an authenticated session to exploit), and because the chained escalation relies on the attachment CSP bypass you can raise the bar by tightening attachment upload/download handling (e.g., limit allowed attachment types or serve file_download.php content with hardened Content-Type/Content-Disposition) - note this may disrupt legitimate file sharing. Backporting the helper_get_font_list() allow-list check and the string_html_specialchars() output encoding is the closest thing to the actual fix. Refer to https://github.com/mantisbt/mantisbt/security/advisories/GHSA-9c3j-xm6v-j7j3 and the patch commit URLs above.
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 tracker. The root cause is CWE-79 (improper neutralization of input during web page generation). In account_prefs_update.php the 'font_family' value taken from gpc_get_string() was written directly via config_set() into the per-user, ALL_PROJECTS configuration without checking membership in the allowed font enumeration; layout_head_css() and print_api.php then emitted that value into page markup. The fix introduces helper_get_font_list() and rejects any font not present in $g_font_family_choices / $g_font_family_choices_local (throwing ClientException), while additionally applying string_html_specialchars() output encoding in layout_api.php and print_api.php as defense in depth. The affected package is identified by CPE pkg:composer/mantisbt_mantisbt. The linked GHSA-9c3j-xm6v-j7j3 advisory documents a separate but composable weakness: the X-Content-Type-Options: nosniff / CSP script-src protection can be bypassed by uploading an attachment that PHP finfo sniffs as a valid JavaScript MIME type, letting an otherwise-blocked injected script actually execute.
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:L/UI:P/VC:H/VI:L/VA:L/SC:H/SI:H/SA:L
Authenticated user injects stored XSS (PR:L) that runs only when a victim loads the page (UI:R); cross-account compromise via chaining changes scope (S:C) with high confidentiality but limited integrity impact.
Primary rating from Vendor (https://github.com/mantisbt/mantisbt).
CVSS VectorVendor: https://github.com/mantisbt/mantisbt
Lifecycle Timeline
3DescriptionCVE.org
Any authenticated user can inject arbitrary HTML via updating their account's font family.
Impact
Cross-site scripting. The injected payload will be reflected in every MantisBT page.
Leveraging another vulnerability (CSP bypass, see GHSA-9c3j-xm6v-j7j3), the attacker could achieve account takeover.
Patches
- 9e8409cdd979eba86ef532756fc47c1d8112d22d
Workarounds
None
Credits
Thanks to siunam (Tang Cheuk Hei) for discovering and responsibly reporting the issue.
Executive ViewAI
MantisBT issue tracking systems running versions 2.28.1 and earlier contain a stored XSS vulnerability that allows authenticated users to inject malicious code affecting all system users, with potential for complete account takeover when combined with a companion CSP-bypass flaw. This exposure directly threatens every user accessing the affected MantisBT instance, creating persistent risk to the organization's issue tracking infrastructure and sensitive project data. Immediate patching is required to prevent compromise of internal accounts and loss of operational visibility into issue management.
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-j3v9-553h-x28j
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB