CVE-2026-40598
JSON

6.9medium

MantisBT has Potential Referer-Based Reflected HTML Injection / XSS in Tag Update Page

Severity
6.9medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.53% (higher than 38% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-6jh4-47v2-4g37

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.

Affected

Product or packageVersionsReported by
mantisbt mantisbt< 2.28.2CVE List
mantisbt/mantisbt (Packagist)before 2.28.2GitHub Advisory Database

All scores

GitHub_M6.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Classification

CWE-79

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

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.

Impact

Cross-site scripting (XSS).

Patches
  • b1ebc57763f104eb5f541b7b4d1ce6948168abd9
Workarounds

None

Credits

Thanks to siunam (Tang Cheuk Hei) for discovering and responsibly reporting the issue.

NVD (es)

Mantis Bug Tracker (MantisBT) es un rastreador de problemas de código abierto. En las versiones 2.28.1 e inferiores, un escape incorrecto de la página de redirección (obtenida del encabezado Referer de la solicitud) permite a un atacante inyectar HTML. Aunque esto generalmente no es directamente accionable, ya que los navegadores modernos codificarán URL los caracteres especiales, en algunas configuraciones de servidor específicas esto podría envenenar la caché, lo que llevaría a cross-site scripting. Este problema ha sido solucionado en la versión 2.28.2.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-40598 changed 2026-05-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-6jh4-47v2-4g37 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-40598 changed 2026-07-23Public domain