{
  "schema_version": "1.4.0",
  "id": "GHSA-r77c-qv68-j3pp",
  "modified": "2025-04-16T16:13:38Z",
  "published": "2023-02-04T09:30:21Z",
  "aliases": [
    "CVE-2018-25080"
  ],
  "summary": "Cross-site Scripting in MobileDetect",
  "details": "A vulnerability, which was classified as problematic, has been found in MobileDetect 2.8.31. This issue affects the function initLayoutType of the file examples/session_example.php of the component Example. The manipulation of the argument $_SERVER['PHP_SELF'] leads to cross site scripting. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 2.8.32 is able to address this issue. The name of the patch is 31818a441b095bdc4838602dbb17b8377d1e5cce. It is recommended to upgrade the affected component. The identifier VDB-220061 was assigned to this vulnerability.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Packagist",
        "name": "mobiledetect/mobiledetectlib"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.8.32"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-25080"
    },
    {
      "type": "WEB",
      "url": "https://github.com/serbanghita/Mobile-Detect/pull/741"
    },
    {
      "type": "WEB",
      "url": "https://github.com/serbanghita/Mobile-Detect/commit/31818a441b095bdc4838602dbb17b8377d1e5cce"
    },
    {
      "type": "WEB",
      "url": "https://github.com/MarkLee131/awesome-web-pocs/blob/main/CVE-2018-25080.md"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/serbanghita/Mobile-Detect"
    },
    {
      "type": "WEB",
      "url": "https://github.com/serbanghita/Mobile-Detect/releases/tag/2.8.32"
    },
    {
      "type": "WEB",
      "url": "https://vuldb.com/?ctiid.220061"
    },
    {
      "type": "WEB",
      "url": "https://vuldb.com/?id.220061"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-79"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-02-14T21:34:31Z",
    "nvd_published_at": "2023-02-04T08:15:00Z"
  }
}