Advisory

GHSA-f633-865q-2mhh

Also known as: CVE-2026-40607

Summary

MantisBT is Vulnerable to Stored XSS in Saved-Filter Owner Column

Details

Incorrect escaping of a saved filter's owner allows an attacker to inject arbitrary HTML on systems where $g_show_user_realname = ON.

Impact
Cross-site scripting (XSS).

Note that By default, only users with *Manager* access level or above can save their filters publicly

Patches

  • 44f490bcf20fd491c1b8f3fc9dd041d8c2a30010

Workarounds

  • Prevent display of users' real name (set $g_ show_user_realname = OFF; in configuration)
  • Restrict ability to store filters (set $g_stored_query_create_threshold / $g_stored_query_create_shared_threshold to NOBODY

Credits
Thanks to siunam (Tang Cheuk Hei) for discovering and responsibly reporting the issue.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-05-11 19:35 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

mantisbt/mantisbt

Packagist · All systems

Affected

  • introduced 2.1.0, fixed 2.28.2 (ecosystem)

Fixed versions

2.28.2

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences