VDB
Sign up
MEDIUM5.4

GHSA-qghg-v7xv-q98q

MantisBT XSS through crafted SVG documents in file_download.php

Quick fix

GHSA-qghg-v7xv-q98q — mantisbt/mantisbt: upgrade to the fixed version with the command below.

composer require mantisbt/mantisbt:^2.25.5

Details

An XSS vulnerability in MantisBT before 2.25.5 allows remote attackers to attach crafted SVG documents to issue reports or bugnotes. When a user or an admin clicks on the attachment, file_download.php opens the SVG document in a browser tab instead of downloading it as a file, causing the JavaScript code to execute.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/mantisbt/mantisbt
Introduced in: 0Fixed in: 2.25.5
Fixcomposer require mantisbt/mantisbt:^2.25.5

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"]}'