Skip to main content

MantisBT CVE-2026-52881

CRITICAL
Cross-site Scripting (XSS) (CWE-79)
2026-07-15 https://github.com/mantisbt/mantisbt GHSA-vcrw-4xvv-jh49
View

Attack ChainAIDerived

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

  1. Access
    Craft URL with malicious install.php parameter
  2. Delivery
    Send link to MantisBT administrator
  3. Exploit
    Reflected input renders fake login form
  4. Execution
    Admin submits credentials to attacker server
  5. Impact
    Credentials exfiltrated / victim redirected

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

Exploitation requires that the MantisBT installer at /admin/install.php still be present and reachable - the Admin Guide directs operators to remove the /admin directory after setup, so hardened production instances are not exposed. The description states no authentication is required to reach the endpoint (CVSS vector unavailable to confirm). Attack is limited by mandatory victim interaction: an administrator must click the attacker-supplied crafted URL and then actively submit the forged login form for credential phishing to succeed. The pre-existing script-src 'self' CSP further limits impact by blocking JavaScript execution, so the flaw yields credential-phishing form injection, <meta> open redirects, and CSS-based UI overlay rather than arbitrary script execution; the missing form-action CSP directive is the specific gap that permits the form-based exfiltration.

Impact

No CVSS vector, EPSS score, or KEV entry is present in the input, so quantitative exploitation signals are unavailable and cannot be compared. Qualitatively this is a reflected XSS neutered by an existing CSP: script execution is prevented, reducing the ceiling from session/account takeover to credential phishing, open redirect, and UI spoofing that all depend on convincing an administrator to click a crafted link and then interact with a forged form. Two structural factors substantially lower real-world risk: exploitation targets install.php, which the vendor's Admin Guide instructs operators to remove after installation, and successful credential theft still requires victim interaction and social engineering rather than automated compromise. This is a legitimate but moderate-priority issue - patch during normal maintenance - rather than a drop-everything emergency; the absence of KEV/POC/EPSS data means the low-urgency read is inferred from the vulnerability class and CSP mitigation, not from confirmed exploitation telemetry.

Exploit ScenarioDerived

An attacker crafts a URL to a target's /admin/install.php with malicious values in one of the six reflected parameters, embedding a fake login form whose action points to an attacker-controlled server. The attacker emails the link to a MantisBT administrator; because the page is served from the real, trusted MantisBT host, the admin trusts the forged prompt, enters credentials, and they are exfiltrated - alternatively the same injection performs a silent <meta> redirect to a malware site. No public exploit code is identified at time of analysis, and success depends on victim interaction over the network vector.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available

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

Alert me

AnalysisAIv1 – Jul 15, 2026

Reflected cross-site scripting in MantisBT 2.28.3 and earlier lets remote attackers inject HTML into the unauthenticated /admin/install.php installer page through six user-supplied parameters echoed via an unescaped printf format string. Because the application ships a script-src 'self' Content Security Policy that lacks a form-action directive, an attacker cannot run inline JavaScript but can render fake credential-harvesting login forms, perform <meta>-based open redirects, and overlay attacker HTML via CSS injection on the legitimate admin page. There is no public exploit identified at time of analysis, no CISA KEV listing, and no CVSS/EPSS score in the provided data; the issue was reported by watchTowr and fixed in 2.28.4.

RemediationAI

Vendor-released patch: 2.28.4 - upgrade MantisBT to 2.28.4 or later, which applies commit 297773fbb238c39a153bd888431b41a176132098 to HTML-escape the reflected form values in admin/install.php (advisory: https://github.com/mantisbt/mantisbt/security/advisories/GHSA-vcrw-4xvv-jh49). If immediate upgrade is not possible, apply the vendor-recommended workaround of removing the /admin directory as described in the Admin Guide (https://mantisbt.org/docs/master/en-US/Admin_Guide/html-desktop/#admin.install.postcommon), which eliminates the vulnerable installer entirely; the trade-off is that admin/upgrade and installation tooling become unavailable until restored. As an additional compensating control, restrict web-server access to /admin/install.php to trusted admin source IPs and add a form-action 'self' directive to the deployed Content Security Policy so injected forms cannot post to external origins, noting this hardens phishing resistance but does not stop the underlying reflection or CSS/redirect abuse.

Affected Packages

composer mantisbt/mantisbt fix: 2.28.4

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

The affected component is the MantisBT installer script admin/install.php in the PHP-based MantisBT bug tracker (package pkg:composer/mantisbt/mantisbt). The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation): form variables (${'f_' . $t_key}) are passed directly into a printf output that emits HTML, so attacker-controlled request parameters are reflected without output encoding. The patch commit 297773fbb238c39a153bd888431b41a176132098 wraps the value in string_html_specialchars(), confirming the fix is contextual HTML-entity escaping. A partial defense-in-depth control already existed - a Content Security Policy of script-src 'self' that blocks inline/injected <script> execution - but the CSP omits a form-action directive, so injected <form> tags can post to arbitrary external origins and <meta http-equiv=refresh> redirects are unrestricted, which is why the impact is phishing/redirect rather than full script execution.

Know when PHP gets its next vulnerability

  • 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

vuln.today AI 6.1 MEDIUM

Network-reachable unauthenticated installer reflection requires the victim admin to click a link and submit a form (UI:R), crosses into the browser context (S:C), and CSP caps impact to limited phishing/redirect (C:L/I:L, A:N).

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

DescriptionCVE.org

MantisBT 2.28.3 and earlier contains six reflected XSS injection points in /admin/install.php. User-supplied parameters are echoed into HTML without escaping via an unescaped printf format string. No authentication is required.

A Content Security Policy (script-src 'self') prevents inline JavaScript execution, but the CSP is missing a form-action directive, allowing exploitation via credential-phishing form injection and <meta> open redirects.

Impact

  • Credential phishing: Attacker crafts a URL that renders a fake login form on the real MantisBT admin page. Admin credentials are submitted to an attacker-controlled server.
  • Open redirect: Victim is silently redirected to a phishing or malware site.
  • UI manipulation: CSS injection can hide legitimate page content and overlay attacker-controlled HTML, enabling social engineering.

Patches

  • https://github.com/mantisbt/mantisbt/commit/297773fbb238c39a153bd888431b41a176132098

Workarounds

Remove the /admin directory, as recommended in the Admin Guide

Resources

Credits

McCaulay Hudson (@_McCaulay) of watchTowr

Executive ViewAI

Why It Matters

MantisBT versions 2.28.3 and earlier contain a vulnerability in the installer page that allows remote attackers to display fake login screens to harvest credentials and perform open redirects without authentication. Organizations that have not removed or protected the installer page face immediate risk of administrative credential compromise and unauthorized system access. Upgrade to version 2.28.4 immediately.

Business Impact: Severe
Compensating Controls

Apply vendor patch: MantisBT 2.28.4. As an interim mitigation prior to patching, restrict network access to the /admin/install.php page via firewall rules or authentication proxy until upgrade is completed.

Threat Intelligence Overview

Prevalence
Medium
widely used open-source bug tracker, common but not ubiquitous
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
2 sources
Confidence: Low

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 CRITICAL
CISA KEV No
Public POC Yes
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
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.

Priority Score

20
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: 0
PoC: +20
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

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

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