NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

CVE-2026-40607: MantisBT is Vulnerable to Stored XSS in Saved-Filter Owner Column

highCVSS 4.0 7.5GHSA-f633-865q-2mhh

Incorrect escaping of a saved filter's owner allows an attacker to inject arbitrary HTML on systems where $gshowuserrealname = 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 showuserrealname = OFF;

Published May 11, 2026 · Updated Jun 8, 2026

Affected packages

mantisbt/mantisbt

Ecosystem
Composer (PHP)
Affected
>= 2.1.0, <= 2.28.1
Fixed in
2.28.2
Check
composer show mantisbt/mantisbt

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to siunam321, dregad.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries