MobileDetect Example session_example.php initLayoutType cross site scripting
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | MobileDetect | 2.8.31 | — | No fix listed | CNA |
| — | mobiledetect/mobiledetectlib (Packagist) | before 2.8.32 | 2.8.32 | Patch available | GHSA-r77c-qv68-j3pp |
- MobileDetect Vendor— Affected 2.8.31 Fixed in — No fix listed CNA
- mobiledetect/mobiledetectlib (Packagist) Vendor— Affected before 2.8.32 Fixed in 2.8.32 Patch available GHSA-r77c-qv68-j3pp
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:mobiledetect:mobiledetect:2.8.31:*:*:*:*:*:*:* | 2.8.31 | Vulnerable | Mobiledetect |
- cpe:2.3:a:mobiledetect:mobiledetect:2.8.31:*:*:*:*:*:*:* Versions 2.8.31 Vulnerable ·Mobiledetect
Remediation
- Fix · GHSA-r77c-qv68-j3pp mobiledetect/mobiledetectlib (Packagist) Fixed in 2.8.32 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2018-25080
- 2026-10-03 Alias added: GHSA-r77c-qv68-j3pp
References
Patch 2
Sources
- CVE-2018-25080 · CVE Program
- CVE-2018-25080 · NVD
- FIRST EPSS
- GHSA-r77c-qv68-j3pp · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences