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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | MobileDetect | 2.8.31 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- MobileDetect 2.8.31 - Cross-Site Scripting (XSS) EDB-52454 · webapps · Dec 3, 2025
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | mobiledetect/mobiledetectlib | < 2.8.32 | 2.8.32 | GHSA-r77c-qv68-j3pp |
References
- https://vuldb.com/?id.220061 vdb-entry technical-description
- https://vuldb.com/?ctiid.220061 signature permissions-required
- https://github.com/serbanghita/Mobile-Detect/pull/741 exploit issue-tracking
- https://github.com/serbanghita/Mobile-Detect/commit/31818a441b095bdc4838602dbb17b8377d1e5cce patch
- https://github.com/serbanghita/Mobile-Detect/releases/tag/2.8.32 patch