What’s Vulnerable › Vulnerabilities
CVE-2017-12061
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.9% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2017-08-01 · updated 2026-06-17
- Weakness: CWE-79
Description
An XSS issue was discovered in admin/install.php in MantisBT before 1.3.12 and 2.x before 2.5.2. Some variables under user control in the MantisBT installation script are not properly sanitized before being output, allowing remote attackers to inject arbitrary JavaScript code, as demonstrated by the $f_database, $f_db_username, and $f_admin_username variables. This is mitigated by the fact that the admin/ folder should be deleted after installation, and also prevented by CSP.
Affected products
- mantisbt: from 1.3.0 before 1.3.12; from 2.0.0 before 2.5.2 — fixed in 1.3.12, 2.5.2
How to fix
Upgrade to a fixed version: mantisbt 1.3.12, 2.5.2. Check the vendor advisory for mitigations.
References
- http://openwall.com/lists/oss-security/2017/08/01/1
- http://openwall.com/lists/oss-security/2017/08/01/2
- http://www.securitytracker.com/id/1039030
- https://github.com/mantisbt/mantisbt/commit/17f9b94f031ba93ae2a727bca0e68458ecd08fb0
- https://github.com/mantisbt/mantisbt/commit/c73ae3d3d4dd4681489a9e697e8ade785e27cba5
- https://mantisbt.org/bugs/view.php?id=23146
- http://openwall.com/lists/oss-security/2017/08/01/1
- http://openwall.com/lists/oss-security/2017/08/01/2
- http://www.securitytracker.com/id/1039030
- https://github.com/mantisbt/mantisbt/commit/17f9b94f031ba93ae2a727bca0e68458ecd08fb0
- https://github.com/mantisbt/mantisbt/commit/c73ae3d3d4dd4681489a9e697e8ade785e27cba5
- https://mantisbt.org/bugs/view.php?id=23146
Get alerted when CVE-2017-12061 or the next vulnerability affects your stack