Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: 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. 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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2017-12061
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 09:55 UTC · Revision 1

Source evidence

CVE-2017-12061

core-osv · Original source

Published 1 Aug 2017, 15:29 UTC

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.

osv:CVE-2017-12061
Complete source record
{
  "id": "86591529a5ae1652aeece742d5f6eb4082a3b306049c59a8b318066002469541",
  "url": "https://osv.dev/vulnerability/CVE-2017-12061",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2017-12061",
    "summary": "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.",
    "evidence": "osv:CVE-2017-12061",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2017-12061",
      "aliases": [
        "CVE-2017-12061",
        "GHSA-98xr-mmq5-vc5h"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mantisbt/mantisbt",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6e1766bddc32d780aa3e08815ad7c010b32ca88a"
                },
                {
                  "fixed": "3109f32a415e3824651300cbb83da6962d1a8f62"
                },
                {
                  "introduced": "ac51f2a22377ec1cef40ae53048327d7ab2df33e"
                },
                {
                  "fixed": "0f1ed233e5c3c86892fb0eafca227681f3f848c7"
                },
                {
                  "fixed": "17f9b94f031ba93ae2a727bca0e68458ecd08fb0"
                },
                {
                  "fixed": "c73ae3d3d4dd4681489a9e697e8ade785e27cba5"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:mantisbt:mantisbt:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.3.0"
                      },
                      {
                        "fixed": "1.3.12"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:mantisbt:mantisbt:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.0.0"
                      },
                      {
                        "fixed": "2.5.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "17f9b94f031ba93ae2a727bca0e68458ecd08fb0"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "c73ae3d3d4dd4681489a9e697e8ade785e27cba5"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "release-1.3.11",
            "release-2.5.1",
            "release-2.5.0",
            "release-2.4.0",
            "release-1.3.10",
            "release-2.3.0",
            "release-1.3.9",
            "release-1.3.8",
            "release-1.3.7",
            "release-2.2.0",
            "release-1.3.6",
            "release-2.1.0",
            "release-1.3.5",
            "release-2.0.0",
            "release-1.3.4",
            "release-1.3.3",
            "release-1.3.2",
            "release-1.3.1",
            "release-1.3.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-12061.json"
          }
        }
      ],
      "modified": "2026-10-20T10:48:48.516479851Z",
      "provider": "osv",
      "references": [
        "https://mantisbt.org/bugs/view.php?id=23146",
        "https://github.com/mantisbt/mantisbt/commit/17f9b94f031ba93ae2a727bca0e68458ecd08fb0",
        "https://github.com/mantisbt/mantisbt/commit/c73ae3d3d4dd4681489a9e697e8ade785e27cba5"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2017-12061",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 380358,
  "published_at": "2017-08-01T15:29:00.547+00:00"
}