CVE-2018-25080
published low CVSS 3.1 · 3.5MobileDetect Example session_example.php initLayoutType cross site scripting
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | MobileDetect2.8.31 | Affected | Not stated | VulDB |
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.
Eine Schwachstelle wurde in MobileDetect 2.8.31 entdeckt. Sie wurde als problematisch eingestuft. Es geht hierbei um die Funktion initLayoutType der Datei examples/session_example.php der Komponente Example. Mittels Manipulieren des Arguments $_SERVER['PHP_SELF'] mit unbekannten Daten kann eine cross site scripting-Schwachstelle ausgenutzt werden. Der Angriff kann über das Netzwerk angegangen werden. Der Exploit steht zur öffentlichen Verfügung. Ein Aktualisieren auf die Version 2.8.32 vermag dieses Problem zu lösen. Der Patch wird als 31818a441b095bdc4838602dbb17b8377d1e5cce bezeichnet. Als bestmögliche Massnahme wird das Einspielen eines Upgrades empfohlen.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 3.5 / 10
- Severity
- low
- Provider
- VulDB · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.0 | 3.5 | low | VulDB · cna | CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N | — |
| 2.0 | 4.0 | medium | VulDB · cna | AV:N/AC:L/Au:S/C:N/I:P/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | MobileDetect | 2.8.31 (affected) | VulDB · cna |
Weaknesses
1- CWE-79 CWE-79 Cross Site Scripting
References
6- https://github.com/MarkLee131/awesome-web-pocs/blob/main/CVE-2018-25080.md
- https://github.com/serbanghita/Mobile-Detect/commit/31818a441b095bdc4838602dbb17b8377d1e5cce
- https://github.com/serbanghita/Mobile-Detect/pull/741
- https://github.com/serbanghita/Mobile-Detect/releases/tag/2.8.32
- https://vuldb.com/?ctiid.220061
- https://vuldb.com/?id.220061
Provider assertions
2VulDB · cna
MobileDetect Example session_example.php initLayoutType cross site scripting
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- b63d5a023cc987d749beb85d9a0bdde4aa3653b20bbd85048246f9b6baa24bfa
- Ingested
- 23 Sep 2026, 07:44:29 UTC
- Source record
- Official CVE record