View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0037017 | mantisbt | security | public | 2026-04-12 08:24 | 2026-05-09 19:56 |
| Reporter | siunam | Assigned To | dregad | ||
| Priority | low | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 2.28.1 | ||||
| Target Version | 2.28.2 | Fixed in Version | 2.28.2 | ||
| Summary | 0037017: CVE-2026-40598 : Potential Referer-Based Reflected HTML Injection / XSS in Tag Update Page | ||||
| Description | In
Unfortunately, this is not an exploitable reflected HTML Injection / XSS vulnerability. As per RFC 3986 section 2.3, all reserved characters in the URL must be percent-encoded (URL encoded). Therefore, all modern browsers will automatically URL encode the request's URL path. However, if the web server is configured with server-side caching, such as Varnish Cache, or the front-end and back-end servers are vulnerable to HTTP request smuggling, it could make this reflected HTML injection / XSS exploitable by poisoning the cache so that the cached response with the HTML injection / XSS payload can be served to the victim's browser. | ||||
| Steps To Reproduce |
EDIT (dregad) break long line to avoid horizontal scrolling | ||||
| Additional Information | PatchHTML entity encode | ||||
| Tags | No tags attached. | ||||
|
Thanks for the detailed report. I confirm the possibility of HTML injection following the given steps to reproduce. Will open an advisory and request a CVE. |
|
|
Advisory https://github.com/mantisbt/mantisbt/security/advisories/GHSA-6jh4-47v2-4g37 created, CVE request sent. Please review and comment, thanks. |
|
|
Patch ready for review in PR https://github.com/mantisbt/mantisbt-ghsa-6jh4-47v2-4g37/pull/1 |
|
I confirmed that the vulnerability can't be reproduced after the patch. LGTM! |
|
|
For the CVSS score, I think it should be 5.3: |
|
|
I updated the CVSS score as suggested. Thanks for the review and test. |
|
|
CVE-2026-40598 assigned |
|
|
MantisBT: master-2.28 b1ebc577 2026-04-12 13:22 Details Diff |
Escape redirect page before display to prevent XSS While 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 HTML injection in the user's browser. Fixes 0037017, GHSA-6jh4-47v2-4g37 |
Affected Issues 0037017 |
|
| mod - tag_update_page.php | Diff File | ||