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.5Details
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.5Fix
composer require mantisbt/mantisbt:^2.25.5References
- https://nvd.nist.gov/vuln/detail/CVE-2022-33910[ADVISORY]
- https://github.com/mantisbt/mantisbt/commit/266762193fc6c09ffc6b14f5a34c86eae3ebee20[WEB]
- https://github.com/mantisbt/mantisbt[PACKAGE]
- https://mantisbt.org/blog/archives/mantisbt/719[WEB]
- https://mantisbt.org/bugs/view.php?id=29135[WEB]
- https://mantisbt.org/bugs/view.php?id=30384[WEB]
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"]}'