CVE-2026-40607
Packagist vulnerability
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.
Affected products
Packagist. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Packagist runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/mantisbt/mantisbt/security/advisories/GHSA-f633-865q-2mhh
- github.com/mantisbt/mantisbt/commit/44f490bcf20fd491c1b8f3fc9dd041d8c2a30010
- mantisbt.org/bugs/view.php?id=37015
- github.com/advisories/GHSA-f633-865q-2mhh
- nvd.nist.gov/vuln/detail/CVE-2026-40607
- nvd.nist.gov/vuln/detail/CVE-2026-40607
- cve.org/CVERecord?id=CVE-2026-40607
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.