MEDIUM4.8
GHSA-qgrr-f26j-87vf
MantisBT XXS where a Custom Field with a crafted Regular Expression property is used
Quick fix
GHSA-qgrr-f26j-87vf — mantisbt/mantisbt: upgrade to the fixed version with the command below.
composer require mantisbt/mantisbt:^2.24.3Details
An issue was discovered in MantisBT before 2.24.3. When editing an Issue in a Project where a Custom Field with a crafted Regular Expression property is used, improper escaping of the corresponding form input's pattern attribute allows HTML injection and, if CSP settings permit, execution of arbitrary JavaScript.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/mantisbt/mantisbt
Introduced in:
2.23.0Fixed in: 2.24.3Fix
composer require mantisbt/mantisbt:^2.24.3References
- https://nvd.nist.gov/vuln/detail/CVE-2020-25288[ADVISORY]
- https://github.com/mantisbt/mantisbt/commit/221cf323f16a9738a5b27aaba94758f11281d85c[WEB]
- https://github.com/mantisbt/mantisbt[PACKAGE]
- https://mantisbt.org/bugs/view.php?id=27275[WEB]
- http://github.com/mantisbt/mantisbt/commit/221cf323f16a9738a5b27aaba94758f11281d85c[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"]}'