A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-40598

CVE-2026-40598: Mantis Bug Tracker (MantisBT) XSS Vulnerability

CVE-2026-40598 is a cross-site scripting flaw in Mantis Bug Tracker (MantisBT) caused by improper escaping of redirection pages that could lead to HTML injection and cache poisoning attacks on certain server configurations.

Published: May 28, 2026

CVE-2026-40598 Overview

CVE-2026-40598 is an HTML injection vulnerability in Mantis Bug Tracker (MantisBT), an open source issue tracking platform. The flaw affects versions 2.28.1 and below, where the application improperly escapes the redirection page value retrieved from the HTTP Referer header. An attacker can inject HTML into the rendered page through this unsanitized input. Modern browsers typically URL-encode special characters in the Referer header, limiting direct exploitation. However, on specific server configurations, the injected content can poison intermediary caches and lead to stored cross-site scripting (XSS). The issue is tracked under [CWE-79] and has been resolved in version 2.28.2.

Critical Impact

Successful exploitation can result in cache-poisoned cross-site scripting against MantisBT users, enabling session theft or unauthorized actions within the issue tracker.

Affected Products

  • Mantis Bug Tracker (MantisBT) versions 2.28.1 and earlier
  • MantisBT deployments behind caching proxies or CDNs are at elevated risk
  • Fixed in MantisBT version 2.28.2

Discovery Timeline

  • 2026-05-22 - CVE-2026-40598 published to NVD
  • 2026-05-23 - Last updated in NVD database

Technical Details for CVE-2026-40598

Vulnerability Analysis

The vulnerability resides in tag_update_page.php, where MantisBT writes the redirect target into a hidden form field without HTML-encoding the value. The redirect value is derived from the HTTP Referer header sent by the client. Because the value is rendered directly inside an HTML attribute, an attacker who controls or influences the Referer value can break out of the attribute context and inject markup. While browsers commonly URL-encode characters in Referer, some proxies, CDNs, and reverse proxy configurations preserve raw characters or normalize requests in ways that allow injection to survive. When cached, the poisoned response is served to subsequent users, converting a reflected condition into a stored cross-site scripting (XSS) issue.

Root Cause

The root cause is missing output encoding. The application echoed $t_redirect_page into an HTML attribute without invoking string_html_specialchars(). Any special characters in the value were rendered verbatim, enabling attribute-context injection.

Attack Vector

An attacker crafts a request that causes a victim or cache layer to populate the Referer with malicious markup, then triggers the tag update flow. If a shared cache stores the response, every downstream user receives the injected payload.

php
		<table class="table table-bordered table-condensed table-striped">
		<fieldset>
			<input type="hidden" name="tag_id" value="<?php echo $f_tag_id ?>"/>
-			<input type="hidden" name="redirect" value="<?php echo $t_redirect_page ?>"/>
+			<input type="hidden" name="redirect" value="<?php echo string_html_specialchars( $t_redirect_page ) ?>"/>
			<?php echo form_security_field( 'tag_update' ) ?>

Source: MantisBT Security Patch Commit b1ebc57. The patch wraps the redirect value in string_html_specialchars() before output, neutralizing HTML metacharacters.

Detection Methods for CVE-2026-40598

Indicators of Compromise

  • HTTP requests to tag_update_page.php containing Referer headers with raw <, >, or " characters
  • Cached responses from MantisBT containing unexpected <script> tags or event handlers in the redirect hidden field
  • Outbound requests from user browsers to unfamiliar domains after visiting MantisBT tag pages

Detection Strategies

  • Inspect web server and proxy access logs for malformed or HTML-bearing Referer headers targeting /tag_update_page.php
  • Run authenticated scanners against MantisBT to confirm the running version matches 2.28.2 or later
  • Review CDN and reverse proxy cache entries for MantisBT responses containing script payloads in hidden form fields

Monitoring Recommendations

  • Alert on anomalous spikes in requests to MantisBT tag management endpoints from a single source
  • Monitor for browser-side Content Security Policy (CSP) violation reports originating from MantisBT pages
  • Audit cache hit ratios and purge logs for the MantisBT hostname to detect cache poisoning attempts

How to Mitigate CVE-2026-40598

Immediate Actions Required

  • Upgrade MantisBT to version 2.28.2 or later without delay
  • Purge any caches and CDN edge nodes serving MantisBT responses to remove poisoned entries
  • Review server logs for prior exploitation attempts targeting tag_update_page.php

Patch Information

The fix is delivered in MantisBT 2.28.2 and applied via commit b1ebc57763f104eb5f541b7b4d1ce6948168abd9. See the GitHub Security Advisory GHSA-6jh4-47v2-4g37 and MantisBT Bug Report #37017 for full details. The patch routes the redirect value through string_html_specialchars() before rendering it in the HTML attribute.

Workarounds

  • Configure the reverse proxy or web application firewall (WAF) to strip or sanitize Referer headers containing HTML metacharacters before they reach MantisBT
  • Disable response caching for authenticated MantisBT endpoints until the upgrade is applied
  • Enforce a strict Content Security Policy (CSP) that blocks inline scripts on MantisBT pages
bash
# Example NGINX rule to drop suspicious Referer headers
map $http_referer $bad_referer {
    default 0;
    "~*[<>\"']" 1;
}

server {
    location /tag_update_page.php {
        if ($bad_referer) {
            return 400;
        }
        proxy_pass http://mantisbt_backend;
    }
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechMantis Bug Tracker

  • SeverityMEDIUM

  • CVSS Score6.9

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory

  • MantisBT Bug Report #37017
  • Related CVEs
  • CVE-2026-34463: MantisBT Stored XSS Vulnerability

  • CVE-2026-34754: MantisBT Auth Bypass Vulnerability

  • CVE-2026-34970: MantisBT Information Disclosure Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English