Cross-site scriptingin the mobiledetect/mobiledetectlib package.
Proof of concept public (Exploit-DB).
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.
- Upgrade mobiledetect/mobiledetectlib (Packagist) to 2.8.32 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 2 Feb 2023CVE ID reserved by VulDB.
- 4 Feb 2023Published in the CVE List.
- 16 Apr 2025CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (Exploit-DB).
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Same weakness: Cross-site scripting
- vuldb.com vdb-entry, technical-description
- vuldb.com signature, permissions-required
- github.com patch
- github.com patch
- github.com
Patchminder. CVE-2018-25080: Cross-site scripting in the mobiledetect/mobiledetectlib package. https://patchminder.com/cve/cve-2018-25080/ (accessed 5 December 2026).