{"id":"CVE-2026-40598","aliases":["GHSA-6jh4-47v2-4g37"],"url":"https://o3.security/vulnerability/CVE-2026-40598","summary":"MantisBT has Potential Referer-Based Reflected HTML Injection / XSS in Tag Update Page","details":"Improper escaping of the redirection page (retrieved from the request's *Referer* header) allows an attacker to inject HTML.\n\nWhile this is generally not directly actionable as modern browsers will URL-encode special characters, on some specific server configurations this could poison the cache, leading to cross-site scripting.\n\n### Impact\nCross-site scripting (XSS).\n\n### Patches\n- b1ebc57763f104eb5f541b7b4d1ce6948168abd9\n\n### Workarounds\nNone\n\n### Credits\nThanks to siunam (Tang Cheuk Hei) for discovering and responsibly reporting the issue.","published":"2026-05-22T19:32:35.535Z","modified":"2026-08-12T03:51:35.300425844Z","cvss":null,"epss":{"score":0.00447,"percentile":0.37035,"asOf":"2026-08-24"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"mantisbt/mantisbt","fixedVersion":"2.28.2"}],"fix":{"url":"https://github.com/mantisbt/mantisbt/commit/b1ebc57763f104eb5f541b7b4d1ce6948168abd9","label":"mantisbt/mantisbt@b1ebc57"},"references":[{"type":"WEB","url":"https://mantisbt.org/bugs/view.php?id=37017"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40598.json"},{"type":"ADVISORY","url":"https://github.com/mantisbt/mantisbt/security/advisories/GHSA-6jh4-47v2-4g37"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40598"},{"type":"FIX","url":"https://github.com/mantisbt/mantisbt/commit/b1ebc57763f104eb5f541b7b4d1ce6948168abd9"},{"type":"PACKAGE","url":"https://github.com/mantisbt/mantisbt"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:35.300425844Z"}}