# CVE-2026-42071: MantisBT missing authorization check in file visibility function

Source: https://junglewise.ai/threats/cve-2026-42071-mantisbt-missing-authorization-check-in-file-visibility-function  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-28. Updated: 2026-06-09  
License: CC BY 4.0 with a link back

CVE-2026-42071 · Severity: high · CVSS 4 · Published 2026-05-28

MantisBT is a popular open-source bug tracking system used by development teams to manage software defects. A security flaw in its API allows users with low-level permissions to download private file attachments, such as logs or screenshots, that were intended only for internal developer discussion. This could lead to the exposure of sensitive technical data or internal project details to unauthorized individuals.

Technologies: [MantisBT](https://junglewise.ai/threats/technologies/mantisbt), [mantisbt/mantisbt (Packagist)](https://junglewise.ai/threats/technologies/mantisbt-mantisbt). Vendors: [MantisBT](https://junglewise.ai/threats/vendors/mantisbt), [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2026-42071 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-42071 being exploited in the wild.

**How severe is CVE-2026-42071?** High severity, with a CVSS score of 4, published 28 May 2026.

**Which products and versions are affected?** MantisBT >= 2.23.0, <= 2.28.1, 2.23.0 to 2.28.1; mantisbt/mantisbt (Packagist) >= 2.23.0, <= 2.28.1, ECOSYSTEM:introduced=2.23.0,fixed=2.28.2.

**Is there a fix for CVE-2026-42071?** Yes. mantisbt/mantisbt (Packagist): upgrade to 2.28.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-42071 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-42071?** Check whether you run MantisBT or mantisbt/mantisbt (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- mantisbt/mantisbt (Packagist): upgrade to 2.28.2 or later

  ```sh
  composer require mantisbt/mantisbt:^2.28.2
  ```


## Technical details

A missing authorization check in MantisBT's file visibility logic allows authenticated users with REPORTER-level access or higher to bypass intended restrictions on private bugnotes. While the web interface correctly filters these attachments, the REST API (GET /api/rest/issues/{id}/files) and SOAP API (mc_issue_attachment_get) endpoints do not properly validate if the requesting user has permission to view files attached to private notes. An attacker can exploit this to download sensitive internal documentation, logs, or patches. The issue is addressed in version 2.28.2 by implementing proper authorization checks in the affected API functions.

## Affected products

- MantisBT MantisBT >= 2.23.0, <= 2.28.1

## Identifiers

- CVE-2026-42071
- GHSA-pw5x-2mf9-3xc8

## Timeline

- 2026-05-09: disclosed
- 2026-05-11: advisory: GitHub Advisory published
- 2026-05-28: advisory: NVD published

## References

- [https://api.github.com/users/shukla304](https://api.github.com/users/shukla304)
- [https://github.com/shukla304](https://github.com/shukla304)
- [https://api.github.com/users/shukla304/gists%7B/gist_id%7D](https://api.github.com/users/shukla304/gists%7B/gist_id%7D)
- [https://api.github.com/users/shukla304/repos](https://api.github.com/users/shukla304/repos)
- [https://avatars.githubusercontent.com/u/6738276?v=4](https://avatars.githubusercontent.com/u/6738276?v=4)
- [https://api.github.com/users/shukla304/events%7B/privacy%7D](https://api.github.com/users/shukla304/events%7B/privacy%7D)

## Related threats

- [MantisBT authentication bypass in SOAP API](https://junglewise.ai/threats/cve-2026-47156-mantisbt-authentication-bypass-in-soap-api)
- [MantisBT stored XSS in print_all_bug_page_word.php](https://junglewise.ai/threats/cve-2026-62944-mantisbt-stored-xss-in-print-all-bug-page-word-php)
- [MantisBT improper input validation in REST and SOAP APIs](https://junglewise.ai/threats/cve-2026-52883-mantisbt-improper-input-validation-in-rest-and-soap-apis)
- [MantisBT authorization bypass in REST and SOAP APIs](https://junglewise.ai/threats/cve-2026-52882-mantisbt-authorization-bypass-in-rest-and-soap-apis)
- [MantisBT reflected XSS in admin/install.php](https://junglewise.ai/threats/cve-2026-52881-mantisbt-reflected-xss-in-admin-install-php)
