CVE-2018-25080
MEDIUM 6.1CVSS 3.1Cross-site Scripting in MobileDetect
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.
- Published
- 4 Feb 2023
- Last modified
- 17 Jun 2026
- Assigned by
- cna@vuldb.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-r77c-qv68-j3pp
- Sources
- NVDJSONOSV GHSA-r77c-qv68-j3ppJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | cna@vuldb.com (Secondary) | CVSS 3.1 | LOW 3.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N |
| NVD | cna@vuldb.com (Secondary) | CVSS 2.0 | MEDIUM 4.0 | AV:N/AC:L/Au:S/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mobiledetect | mobiledetectcpe:2.3:a:mobiledetect:mobiledetect:2.8.31:*:*:*:*:*:*:* |
= 2.8.31 | |
| OSV | Packagist | mobiledetect/mobiledetectlib | < 2.8.32 | 2.8.32 |
References
- https://github.com/serbanghita/Mobile-Detect/commit/31818a441b095bdc4838602dbb17b8377d1e5cce · Patch, WEB
- https://github.com/serbanghita/Mobile-Detect/pull/741 · Issue Tracking, Patch, WEB
- https://github.com/serbanghita/Mobile-Detect/releases/tag/2.8.32 · Release Notes, WEB
- https://vuldb.com/?ctiid.220061 · Permissions Required, Third Party Advisory, WEB
- https://vuldb.com/?id.220061 · Permissions Required, Third Party Advisory, WEB
- https://github.com/MarkLee131/awesome-web-pocs/blob/main/CVE-2018-25080.md · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-25080 · ADVISORY
- https://github.com/serbanghita/Mobile-Detect · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 4 Feb 2023)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 4 Feb 2023)