Skip to main content

MantisBT CVE-2026-52847

CRITICAL
Cross-site Scripting (XSS) (CWE-79)
2026-07-15 https://github.com/mantisbt/mantisbt GHSA-77x8-3v3h-hrhv
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious /admin/install.php URL
  2. Delivery
    Lure admin to open link
  3. Exploit
    Reflected parameter injects fake form/overlay
  4. Execution
    Admin submits credentials to attacker server
  5. Impact
    Attacker harvests admin credentials

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 remains present and network-reachable - the primary limiting factor, since the vendor advises removing the /admin directory after setup, so hardened deployments are not exposed. The advisory explicitly states no authentication is required to trigger the reflection, but success depends on victim interaction: an administrator (or privileged user) must open the attacker-crafted URL and then be socially engineered into submitting credentials to the injected form or following the injected redirect. The deployment's CSP (script-src 'self') further limits impact by preventing inline JavaScript execution, which is why the practical exploit relies on the missing form-action directive rather than script execution; a deployment that adds form-action to its CSP would blunt the credential-phishing path. No CVSS vector was provided in the source data, so the authentication/interaction characterization is drawn from the advisory text and the nature of reflected XSS, not from a published vector.

Impact

No CVSS score or vector was supplied by the source (CVSS: N/A), so severity signals must be inferred. My independent assessment is network-reachable, low-complexity, unauthenticated but requiring victim interaction (the victim must open an attacker-crafted URL), with a scope change into the trusted admin origin and limited confidentiality/integrity impact - roughly CVSS 3.1 6.1 (medium). This is a reflected XSS whose direct code-execution impact is deliberately constrained by the script-src CSP, so it is not a server-compromise or RCE-class issue; the practical risk is social-engineering-driven credential theft and redirection rather than automated mass exploitation. There is no EPSS score, no KEV listing, and no public exploit code identified, which is consistent with a targeted, phishing-oriented bug rather than a wormable one. The one caveat: exploitation depends on /admin/install.php remaining reachable post-install, which well-administered deployments should have removed - so real-world exposure is lower than the raw XSS classification suggests.

Exploit ScenarioDerived

An attacker crafts a URL to a target's exposed /admin/install.php that injects a fake login form and CSS overlay into one of the six reflected parameters, then lures an administrator to click it (e.g., via email). Because the markup renders on the genuine MantisBT admin origin, the admin trusts the fake form and submits credentials, which post to an attacker-controlled server; alternatively an injected <meta> refresh silently redirects the victim to a malware page. No public exploit code is identified, but the attack is straightforward given network access and requires only victim interaction.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
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's /admin/install.php (versions 2.28.3 and earlier) lets remote attackers inject HTML through six unescaped, user-supplied parameters echoed by print_test_result(). Although the page's Content-Security-Policy (script-src 'self') blocks inline JavaScript, the missing form-action directive permits credential-phishing form injection, <meta>-based open redirects, and CSS overlay attacks against the trusted admin origin. The advisory states no authentication is required; there is no public exploit identified at time of analysis and it is not listed in CISA KEV.

RemediationAI

Vendor-released patch: upgrade to MantisBT 2.28.4, which applies output encoding via string_html_specialchars() in print_test_result() (commits 0f32ceabadc745239754962df91a51d5d51e3fd7 and f2191a0d8ce438bf74171d496cf721dae025a5c0). If immediate upgrade is not possible, the vendor-recommended workaround is to remove the /admin directory after installation per the Admin Guide (https://mantisbt.org/docs/master/en-US/Admin_Guide/html-desktop/#admin.install.postcommon); this eliminates the vulnerable installer entirely with the trade-off that you must temporarily restore it to run future upgrades or diagnostics. As an additional compensating control, restrict access to /admin/install.php at the web-server or WAF layer (IP allow-listing or authentication) and add a CSP form-action 'self' directive to blunt the phishing and redirect vector, noting this does not fix the underlying reflection. See advisory GHSA-77x8-3v3h-hrhv for the canonical fix guidance.

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

MantisBT is a widely used PHP-based open-source bug-tracking application (packaged as composer/mantisbt/mantisbt). The flaw is a classic CWE-79 Improper Neutralization of Input During Web Page Generation: the installer helper function print_test_result() concatenated attacker-controlled request parameters directly into the HTML response ('<br>' . $p_message) without output encoding. The fix in commit 0f32cea wraps the message in string_html_specialchars(), neutralizing the injected markup. Notably the deployment ships a partial CSP - script-src 'self' stops reflected inline <script>/event-handler execution - but because CSP form-action was not set, injected <form> elements can post to arbitrary external hosts and <meta http-equiv=refresh> redirects are unrestricted, so the missing directive converts an otherwise script-neutered XSS into a usable phishing and open-redirect primitive.

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 reflected XSS needing victim interaction (UI:R) with a scope change into the admin origin; CSP limits impact to low confidentiality/integrity, no availability effect.

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:P/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 print_test_result(). 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/0f32ceabadc745239754962df91a51d5d51e3fd7
  • https://github.com/mantisbt/mantisbt/commit/f2191a0d8ce438bf74171d496cf721dae025a5c0

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 critical, unauthenticated vulnerability in the admin installation page enabling attackers to steal administrative credentials and compromise the entire issue-tracking system. No public exploit identified at time of analysis, yet organizations using vulnerable versions remain at immediate risk due to the absence of authentication requirements, making this a threat to any exposed deployment.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
Medium
popular open-source PHP bug tracker, common but not ubiquitous
Threat Intel
1
1 source
Data Quality
2 sources
Confidence: Low
CVE.org GHSA GitHub

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 No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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.

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