Live threats

All CVEs / Mobiledetect

CVE-2018-25080Mobiledetect

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
2.8%
probability of exploitation in 30 days · percentile 87
Auth required
No
Published
Feb 4, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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 identifier of the patch is 31818a441b095bdc4838602dbb17b8377d1e5cce. It is recommended to upgrade the affected component. The identifier VDB-220061 was assigned to this vulnerability.

Original NVD text.

What to do

  1. Apply the vendor's security update for Mobiledetect.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist mobiledetect/mobiledetectlib < 2.8.32 2.8.32 composer require "mobiledetect/mobiledetectlib:^2.8.32"

Per OSV / GitHub Advisories (GHSA-r77c-qv68-j3pp). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
mobiledetectmobiledetect2.8.31

Official sources

References

Links published by the sources. Open them with care.