CVE-2024-34081: MantisBT Cross-site Scripting vulnerability

Published May 13, 2024
·
Updated

Improper escaping of a custom field's name allows an attacker to inject HTML and, if CSP settings permit, achieve execution of arbitrary JavaScript when: - resolving or closing issues (bugchangestatuspage.php) belonging to a project linking said custom field - viewing issues (viewallbugpage.php) when the custom field is displayed as a column - printing issues (printallbugpage.php) when the custom field is displayed as a column

Impact Cross-site scripting (XSS).

Patches https://github.com/mantisbt/mantisbt/commit/447a521aae0f82f791b8116a14a20e276df739be

Workarounds Ensure Custom Field Names do not contain HTML tags.

References - https://mantisbt.org/bugs/view.php?id=34432 - This is related to CVE-2020-25830 (same root cause, different affected pages)

Other sources

MantisBT (Mantis Bug Tracker) is an open source issue tracker. Improper escaping of a custom field's name allows an attacker to inject HTML and, if CSP settings permit, achieve execution of arbitrary JavaScript when resolving or closing issues (bugchangestatuspage.php) belonging to a project linking said custom field, viewing issues (viewallbugpage.php) when the custom field is displayed as a column, or printing issues (printallbugpage.php) when the custom field is displayed as a column. Version 2.26.2 contains a patch for the issue. As a workaround, ensure Custom Field Names do not contain HTML tags.

NVD

Affected Software

2 affected componentsFixes available
composer/mantisbt/mantisbt<2.26.2
2.26.2
MantisBT mantisbt<2.26.2

Event History

May 13, 2024
CVE Published
via MITRE·03:40 PM
Data Sourced
via MITRE·03:40 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·04:00 PM
May 14, 2024
Data Sourced
via NVD·03:38 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-34081?

CVE-2024-34081 has been classified with a high severity due to its potential for arbitrary JavaScript execution.

2

How do I fix CVE-2024-34081?

To mitigate CVE-2024-34081, upgrade to MantisBT version 2.26.2 or later.

3

What types of attacks are possible with CVE-2024-34081?

CVE-2024-34081 allows attackers to inject HTML and potentially execute arbitrary JavaScript if CSP settings are permissive.

4

Which versions of MantisBT are affected by CVE-2024-34081?

CVE-2024-34081 affects all versions of MantisBT prior to 2.26.2.

5

Where does CVE-2024-34081 occur in MantisBT?

CVE-2024-34081 can be exploited while resolving or closing issues and viewing issues that link to a vulnerable custom field.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203