# CVE-2026-62944: MantisBT: Stored XSS in print_all_bug_page_word.php

- Severity: High (CVSS:4.0, scored by GitHub) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-07-15T18:56:00.000Z
- Modified: 2026-07-15T19:11:50.363Z
- Also known as: GHSA-h2wf-967x-gxvw
- Weaknesses: CWE-79

## Description

A missing output encoding call in print_all_bug_page_word.php allows any authenticated user to inject arbitrary HTML into an IMG tag's *alt* attribute via an image attachment with a crafted filename such as `probe." onload="alert(1)`. 

When any user views the HTML export page (print_all_bug_page_word.php?type_page=html&export=1), the rendered IMG tag becomes `<img src="..." alt="" onload="alert(1)" />`, breaking out of the alt attribute. 

### Impact
Cross-site scripting.

Impact is limited by MantisBT's Content Security Policy.

### Patches
- https://github.com/mantisbt/mantisbt/commit/bdd0e364f62759de272dfd4c89b4f51d27be9daa

### Workarounds
None

### Resources
- https://mantisbt.org/bugs/view.php?id=37234

### Credits
MantisBT thanks the [Dracosec Research Limited](https://dracosec.tech/) team (Chris Chan, Krecendo Hui, William Lam) for discovering and responsibly reporting the issue.

(As written by GitHub Advisory Database.)

## Affected

- mantisbt/mantisbt (Packagist): before 2.28.4

## References

- <https://github.com/mantisbt/mantisbt/security/advisories/GHSA-h2wf-967x-gxvw> (web)
- <https://github.com/mantisbt/mantisbt/commit/bdd0e364f62759de272dfd4c89b4f51d27be9daa> (web)
- <https://github.com/mantisbt/mantisbt> (package)
- <https://mantisbt.org/bugs/view.php?id=37234> (web)

## Sources

- GitHub Advisory Database: [GHSA-h2wf-967x-gxvw](https://github.com/advisories/GHSA-h2wf-967x-gxvw), CC-BY-4.0, modified 2026-07-15

---

Page: https://cve.day/CVE-2026-62944 · Whole record: https://cve.day/CVE-2026-62944.json · Rebuilt by cve.day 2026-11-25T22:56:32.239Z
