CVE-2020-35571: MantisBT XSS Vulnerability in manage_custom_field_update.php

mantisbt/mantisbt Updated 02 Oct 2025

Summary

24/05/2022
Yes i
Moderate
6.1

CVE-2020-35571: MantisBT XSS in manage_custom_field_update.php. Affects mantisbt/mantisbt versions < 2.25.0. Fixed in 2.25.0. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

MantisBT is an open-source bug tracking system that helps teams manage and track issues effectively. It provides features such as issue tracking, project management, and collaboration tools. The software is widely used in various industries for its flexibility and ease of use. However, like many web applications, it can be susceptible to security vulnerabilities, including cross-site scripting (XSS) attacks, which can compromise user data and application integrity.

Vulnerability Detail

An XSS vulnerability exists in MantisBT versions up to 2.24.3, specifically in the manage_custom_field_update.php file. The issue arises from the helper_ensure_confirmed function, where the custom field name is not properly sanitized. This lack of sanitization can lead to the injection of malicious scripts, which may execute in the context of the user's browser, potentially allowing attackers to steal session cookies or perform actions on behalf of the user. The severity of this vulnerability is classified as moderate, with a CVSS score of 6.1.

How To Fix

Minimum fixed version

2.25.0

This is the first release that contains the fix.

composer require mantisbt/mantisbt:2.25.0

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

Workaround

As a temporary workaround, you can implement Content Security Policy (CSP) headers to mitigate the risk of XSS attacks. This can be done by adding the following HTTP header to your server configuration: 'Content-Security-Policy: default-src 'self';'. This will restrict the sources from which scripts can be executed, reducing the likelihood of successful XSS attacks.

Conclusion

The XSS vulnerability in MantisBT's manage_custom_field_update.php file poses a moderate risk to users of the software. It is crucial to update to the latest version to mitigate this risk. Implementing CSP headers can also provide an additional layer of security while a full update is being planned.

See every vulnerability recorded for mantisbt/mantisbt →

Share this vulnerability

FAQ

The vulnerability is a cross-site scripting (XSS) issue that allows attackers to inject malicious scripts into the application.

MantisBT versions up to 2.24.3 are affected by this vulnerability.

You can use Vulert, which monitors open-source vulnerabilities in real-time. Check your application against the vulnerability using the Vulert playground at Vulert Scanner.

If exploited, this vulnerability could allow attackers to execute scripts in the user's browser, potentially leading to data theft or unauthorized actions.

Yes, the vulnerability has been patched in MantisBT version 2.25.0. It is recommended to update to this version or later.

Related vulnerabilities

Recent vulnerabilities recorded for mantisbt/mantisbt.

How To Fix

Minimum fixed version

2.25.0

This is the first release that contains the fix.

composer require mantisbt/mantisbt:2.25.0

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