BuzzPHP
LightDarkSystem

MantisBT: SQL Injection via history_order Configuration Value

High severity. Published 15 July 2026. Update mantisbt/mantisbt to 2.28.4 or later: composer update mantisbt/mantisbt.

Which versions are affected?

PackageAffected versionsFixed in
mantisbt/mantisbt (opens in a new tab)<= 2.28.32.28.4

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show mantisbt/mantisbt
composer audit

Advisory details

SeverityHigh
Published
Updated
CVECVE-2026-47142 (opens in a new tab)
GHSAGHSA-mw6p-33vw-46cc (opens in a new tab)
WeaknessCWE-89

What the advisory says

MantisBT 2.28.3 and earlier versions contains a SQL injection vulnerability in core/historyapi.php. The historyorder configuration value is concatenated directly into a SQL ORDER BY clause without any sanitisation, parameterization, or validation against a whitelist.

An administrator can set this configuration value via the web UI (admconfigset.php) or the REST API (PATCH /api/rest/config). The injected SQL then executes whenever any user views a bug with history entries.

Source: GHSA-mw6p-33vw-46cc (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories