CVE-2018-25080
MobileDetect Example session_example.php initLayoutType cross site scripting
- Published
- Updated
- Reserved
- Assigned by
- VulDB
Description
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| VulDBCNA (assigner) | 3.1 | Low3.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N |
| VulDBCNA (assigner) | 3.0 | Low3.5 | CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N |
| VulDBCNA (assigner) | 2.0 | Medium4.0 | AV:N/AC:L/Au:S/C:N/I:P/A:N |
| NVDNVD · Modified | 3.1 | Medium6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 2.7% · top 14% of all CVEs (5 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Low 3.5.
Weakness
Affected products
MobileDetect
- affected 2.8.31
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Packagistmobiledetect/mobiledetectlibGHSA-r77c-qv68-j3pp (opens in a new tab)
References (6)
- https://vuldb.com/?id.220061 (opens in a new tab)vdb-entrytechnical-descriptionx_transferred
- https://vuldb.com/?ctiid.220061 (opens in a new tab)signaturepermissions-requiredx_transferred
- https://github.com/serbanghita/Mobile-Detect/pull/741 (opens in a new tab)exploitissue-trackingx_transferred
- https://github.com/serbanghita/Mobile-Detect/commit/31818a441b095bdc4838602dbb17b8377d1e5cce (opens in a new tab)patchx_transferred
- https://github.com/serbanghita/Mobile-Detect/releases/tag/2.8.32 (opens in a new tab)patchx_transferred
- https://github.com/MarkLee131/awesome-web-pocs/blob/main/CVE-2018-25080.md (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-r77c-qv68-j3pp (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2018-25080)Record last updated .