Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. mantisbt/mantisbt
  4. ›
  5. CVE-2017-12061

CVE-2017-12061: MantisBT XSS allows unsanitized input via admin/install.php

May 13, 2022 (updated May 30, 2025)

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.

References

  • github.com/advisories/GHSA-98xr-mmq5-vc5h
  • github.com/mantisbt/mantisbt
  • github.com/mantisbt/mantisbt/commit/17f9b94f031ba93ae2a727bca0e68458ecd08fb0
  • github.com/mantisbt/mantisbt/commit/c73ae3d3d4dd4681489a9e697e8ade785e27cba5
  • mantisbt.org/bugs/view.php?id=23146
  • nvd.nist.gov/vuln/detail/CVE-2017-12061
  • web.archive.org/web/20170811053146/http://www.securitytracker.com/id/1039030

Code Behaviors & Features

Detect and mitigate CVE-2017-12061 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.3.12, all versions starting from 2.0.0 before 2.5.2

Fixed versions

  • 1.3.12
  • 2.5.2

Solution

Upgrade to versions 1.3.12, 2.5.2 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/mantisbt/mantisbt/CVE-2017-12061.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 09 Dec 2025 00:19:15 +0000.