Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. mantisbt/mantisbt
  4. ›
  5. CVE-2024-34081

CVE-2024-34081: Mantis Bug Tracker (MantisBT) vulnerable to cross-site scripting

May 13, 2024

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 (bug_change_status_page.php) belonging to a project linking said custom field
  • viewing issues (view_all_bug_page.php) when the custom field is displayed as a column
  • printing issues (print_all_bug_page.php) when the custom field is displayed as a column

References

  • github.com/advisories/GHSA-wgx7-jp56-65mq
  • github.com/mantisbt/mantisbt
  • github.com/mantisbt/mantisbt/commit/447a521aae0f82f791b8116a14a20e276df739be
  • github.com/mantisbt/mantisbt/security/advisories/GHSA-wgx7-jp56-65mq
  • mantisbt.org/bugs/view.php?id=34432
  • nvd.nist.gov/vuln/detail/CVE-2024-34081

Code Behaviors & Features

Detect and mitigate CVE-2024-34081 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.26.2

Fixed versions

  • 2.26.2

Solution

Upgrade to version 2.26.2 or above.

Impact 6.6 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/mantisbt/mantisbt/CVE-2024-34081.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:59 +0000.