VDB
Sign up
HIGH8.6

GHSA-fh48-f69w-7vmp

MantisBT Vulnerable to Stored HTML Injection in Tag Delete Confirmation

Quick fix

GHSA-fh48-f69w-7vmp — mantisbt/mantisbt: upgrade to the fixed version with the command below.

composer require mantisbt/mantisbt:^2.28.1

Details

Improper escaping of Tag name when deleting it in tag_delete.php allows an attacker to inject HTML and, if CSP settings permit, achieve execution of arbitrary JavaScript.

### Impact Cross-site scripting (XSS).

### Patches 80990f43153167c73f11eb4b2bc7108d0c3d6b46

### Workarounds * Revert commit d6890320752ecf37bd74d11fe14fe7dc12335be9 * Manually edit language files to remove the sprintf placeholder `%1$s` from *$s_tag_delete_message* string, for example with `sed -r -i '/tag_delete_message/s/.%1\$s.//' -- lang/`

### Credits MantisBT hanks Vishal Shukla for discovering and responsibly reporting the issue.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/mantisbt/mantisbt
Introduced in: 2.28.0Fixed in: 2.28.1
Fixcomposer require mantisbt/mantisbt:^2.28.1

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:composer/mantisbt/mantisbt"]}'