MobileDetect Example session_example.php initLayoutType cross site scripting
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
mobiledetect/mobiledetectlibPackagist | < 2.8.32 | 2.8.32 |
Affected products
1Patches
Vulnerability mechanics
Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
8- github.com/serbanghita/Mobile-Detect/commit/31818a441b095bdc4838602dbb17b8377d1e5cceghsapatchWEB
- github.com/serbanghita/Mobile-Detect/releases/tag/2.8.32ghsapatchWEB
- github.com/serbanghita/Mobile-Detect/pull/741ghsaexploitissue-trackingWEB
- github.com/advisories/GHSA-r77c-qv68-j3ppghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2018-25080ghsaADVISORY
- github.com/MarkLee131/awesome-web-pocs/blob/main/CVE-2018-25080.mdghsaWEB
- vuldb.comghsasignaturepermissions-requiredWEB
- vuldb.comghsavdb-entrytechnical-descriptionWEB
News mentions
0No linked articles in our index yet.