CVE-2019-15074: MantisBT Cross-Site Scripting Vulnerability via Crafted Filename

mantisbt/mantisbt Updated 14 Dec 2025

Summary

24/05/2022
Yes i
Moderate
5.3

CVE-2019-15074: MantisBT allows cross-site scripting (XSS) via crafted filename. Affects mantisbt/mantisbt versions < 2.21.2. Fixed in 2.21.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

MantisBT is an open-source issue tracker designed for software development projects. It provides features such as bug tracking, project management, and collaboration tools. The software allows users to upload attachments to issues, which can enhance communication but also introduces security risks if not properly managed. This vulnerability specifically affects versions up to 2.21.1, where crafted filenames can lead to cross-site scripting (XSS) attacks.

Vulnerability Detail

The vulnerability exists in the Timeline feature of MantisBT, specifically in the my_view_page.php file. It allows an attacker to upload an attachment with a specially crafted filename that contains malicious scripts. When any user with visibility to the issue views the My View Page, the script executes, potentially leading to unauthorized actions or data theft. This stored XSS vulnerability can be exploited if Content Security Policy (CSP) settings do not adequately restrict script execution.

How To Fix

Minimum fixed version

2.21.2

This is the first release that contains the fix.

composer require mantisbt/mantisbt:2.21.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can disable file uploads or restrict the types of files that can be uploaded until the software is updated. Additionally, implementing a strict Content Security Policy (CSP) can help mitigate the risk of XSS attacks.

Conclusion

The CVE-2019-15074 vulnerability in MantisBT poses a significant risk through stored XSS via crafted filenames in attachments. It is crucial to update to version 2.21.2 or later to mitigate this risk. Users should also consider implementing additional security measures such as CSP to further protect their applications.

See every vulnerability recorded for mantisbt/mantisbt →

Share this vulnerability

FAQ

The vulnerability is a stored cross-site scripting (XSS) issue that allows execution of arbitrary scripts through crafted filenames in uploaded attachments.

Versions of MantisBT up to and including 2.21.1 are affected by this vulnerability.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

If exploited, this vulnerability can lead to unauthorized actions, data theft, or other malicious activities performed in the context of the affected user.

Yes, you can temporarily disable file uploads or restrict the types of files that can be uploaded, and implement a strict Content Security Policy (CSP).

Related vulnerabilities

Recent vulnerabilities recorded for mantisbt/mantisbt.

How To Fix

Minimum fixed version

2.21.2

This is the first release that contains the fix.

composer require mantisbt/mantisbt:2.21.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback