Advisory

GHSA-h2wf-967x-gxvw

Also known as: CVE-2026-62944

Summary

MantisBT: Stored XSS in print_all_bug_page_word.php

Details

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 team (Chris Chan, Krecendo Hui, William Lam) for discovering and responsibly reporting the issue.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-07-15 18:56 UTC
Modified
2026-07-15 19:11 UTC

Affected packages and fixes

mantisbt/mantisbt

Packagist · All systems

Affected

  • introduced 0, fixed 2.28.4 (ecosystem)

Fixed versions

2.28.4

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences