# CVE-2026-40598: MantisBT has Potential Referer-Based Reflected HTML Injection / XSS in Tag Update Page

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 38% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-11T19:35:01.000Z
- Modified: 2026-09-10T03:50:45.807Z
- Also known as: GHSA-6jh4-47v2-4g37
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Mantis Bug Tracker (MantisBT) is an open source issue tracker. In versions 2.28.1 and below, improper escaping of the redirection page (retrieved from the request's Referer header) allows an attacker to inject HTML. 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 cross-site scripting. This issue has been fixed in version 2.28.2.

(As written by CVE List.)

## Affected

- mantisbt mantisbt: < 2.28.2
- mantisbt/mantisbt (Packagist): before 2.28.2

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`

## References

- <https://mantisbt.org/bugs/view.php?id=37017> (exploit, web)
- <https://github.com/mantisbt/mantisbt/security/advisories/GHSA-6jh4-47v2-4g37> (web)
- <https://github.com/mantisbt/mantisbt/commit/b1ebc57763f104eb5f541b7b4d1ce6948168abd9> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40598> (advisory)
- <https://github.com/mantisbt/mantisbt> (package)

## Sources

- CVE List: [CVE-2026-40598](https://www.cve.org/CVERecord?id=CVE-2026-40598), CVE Terms of Use, modified 2026-05-23
- GitHub Advisory Database: [GHSA-6jh4-47v2-4g37](https://github.com/advisories/GHSA-6jh4-47v2-4g37), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-40598](https://nvd.nist.gov/vuln/detail/CVE-2026-40598), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-40598 · Whole record: https://cve.day/CVE-2026-40598.json · Rebuilt by cve.day 2026-11-25T22:59:22.206Z
