CVE-2021-33557 MantisBT allows XSS in manage_custom_field_edit_page.php

Medium 6.1 Published Updated

An attacker can inject malicious scripts via the return parameter in the custom field edit page, potentially leading to session hijacking or code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-33557?

CVE-2021-33557 is a medium-severity cross-site scripting vulnerability in Mantisbt Mantisbt, published on 17 Jun 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

An XSS issue was discovered in manage_custom_field_edit_page.php in MantisBT before 2.25.2. Unescaped output of the return parameter allows an attacker to inject code into a hidden input field.

Weakness: CWE-79

Which versions are affected by CVE-2021-33557?

2 open source packages ship an affected version, including mantisbt/mantisbt. It affects 1 product.

PackageAffectedFixed in
mantisbt/mantisbt PackagistAll versions2.25.2
mantisbt/mantisbt PackagistAll versions2.25.2

Products include Mantisbt Mantisbt.

How do I fix CVE-2021-33557?

Upgrade mantisbt/mantisbt to 2.25.2 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2021-33557 being exploited?

There is no known exploitation of CVE-2021-33557 in the wild and no public exploit code.

All Mantisbt Mantisbt vulnerabilities

Sources

Also known as GHSA-52cx-vphc-jmjm.

Is CVE-2021-33557 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free