What’s Vulnerable › Vulnerabilities
CVE-2018-25080: MobileDetect Example session_example.php initLayoutType cross site scripting
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.7% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2023-02-04 · updated 2026-06-17
- Weakness: CWE-79
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.
Affected products
- MobileDetect: 2.8.31
References
- https://github.com/serbanghita/Mobile-Detect/commit/31818a441b095bdc4838602dbb17b8377d1e5cce
- https://github.com/serbanghita/Mobile-Detect/pull/741
- https://github.com/serbanghita/Mobile-Detect/releases/tag/2.8.32
- https://vuldb.com/?ctiid.220061
- https://vuldb.com/?id.220061
- https://github.com/MarkLee131/awesome-web-pocs/blob/main/CVE-2018-25080.md
- https://github.com/serbanghita/Mobile-Detect/commit/31818a441b095bdc4838602dbb17b8377d1e5cce
- https://github.com/serbanghita/Mobile-Detect/pull/741
- https://github.com/serbanghita/Mobile-Detect/releases/tag/2.8.32
- https://vuldb.com/?ctiid.220061
- https://vuldb.com/?id.220061
Get alerted when CVE-2018-25080 or the next vulnerability affects your stack