{"id":"CVE-2018-25080","published":"2023-02-04T07:57:04Z","modified":"2025-04-16T14:42:16Z","title":"MobileDetect Example session_example.php initLayoutType cross site scripting","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.5,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02777,"percentile":0.86712,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://vuldb.com/?id.220061","tags":["vdb-entry","technical-description"]},{"url":"https://vuldb.com/?ctiid.220061","tags":["signature","permissions-required"]},{"url":"https://github.com/serbanghita/Mobile-Detect/pull/741","tags":["exploit","issue-tracking"]},{"url":"https://github.com/serbanghita/Mobile-Detect/commit/31818a441b095bdc4838602dbb17b8377d1e5cce","tags":["patch"]},{"url":"https://github.com/serbanghita/Mobile-Detect/releases/tag/2.8.32","tags":["patch"]},{"url":"https://github.com/MarkLee131/awesome-web-pocs/blob/main/CVE-2018-25080.md","tags":[]}],"priority":{"score":24.8,"factors":[{"name":"EPSS percentile","points":17.34},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":2.45}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2025-12-03"},"first":{"date":"2025-12-03","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/52454"},"provenance":"source"},"affectedVersions":[{"vendor":"n/a","product":"MobileDetect","versions":["2.8.31"]}],"affected":[{"ecosystem":"Packagist","package":"mobiledetect/mobiledetectlib","vulnerableRanges":["<2.8.32"],"patched":["2.8.32"],"from":["GHSA-r77c-qv68-j3pp"],"provenance":"source"}],"summary":{"text":"The MobileDetect library's examples/session_example.php file, specifically the initLayoutType function in its Example component, fails to properly neutralise the $_SERVER['PHP_SELF'] argument, producing a cross-site scripting flaw in MobileDetect 2.8.31. An attacker can exploit this remotely, but it requires low privileges and user interaction, such as a victim being induced to open a crafted link or page.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T15:01:44Z"},"euvd":{"id":"EUVD-2023-0788","exploited":false,"provenance":"source"},"exploits":[{"id":52454,"url":"https://www.exploit-db.com/exploits/52454","title":"MobileDetect 2.8.31 - Cross-Site Scripting (XSS)","date":"2025-12-03","verified":false,"provenance":"source"}],"exploitRefs":["https://github.com/serbanghita/Mobile-Detect/pull/741","https://github.com/MarkLee131/awesome-web-pocs/blob/main/CVE-2018-25080.md"]}