Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. mobiledetect/mobiledetectlib
  4. ›
  5. CVE-2018-25080

CVE-2018-25080: Cross-site Scripting in MobileDetect

February 4, 2023 (updated April 16, 2025)

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.

References

  • github.com/MarkLee131/awesome-web-pocs/blob/main/CVE-2018-25080.md
  • github.com/advisories/GHSA-r77c-qv68-j3pp
  • github.com/serbanghita/Mobile-Detect
  • github.com/serbanghita/Mobile-Detect/commit/31818a441b095bdc4838602dbb17b8377d1e5cce
  • github.com/serbanghita/Mobile-Detect/pull/741
  • github.com/serbanghita/Mobile-Detect/releases/tag/2.8.32
  • nvd.nist.gov/vuln/detail/CVE-2018-25080
  • vuldb.com/?ctiid.220061
  • vuldb.com/?id.220061

Code Behaviors & Features

Detect and mitigate CVE-2018-25080 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 2.8.32

Fixed versions

  • 2.8.32

Solution

Upgrade to version 2.8.32 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/mobiledetect/mobiledetectlib/CVE-2018-25080.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:14:42 +0000.