patchminder
Proof of concept · Exploit-DB CVE-2018-25080

Cross-site scriptingin the mobiledetect/mobiledetectlib package.

Published 4 Feb 2023 · Updated 16 Apr 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (Exploit-DB).

Attack code is public
Severity
Low 3.5
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1
Attack likelihood
Moderate
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 2.8% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 2.8.32 or later
In plain words

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.

What to do now
  • Upgrade mobiledetect/mobiledetectlib (Packagist) to 2.8.32 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
MobileDetect
Not confirmed
Not confirmed
CVE record
mobiledetect/mobiledetectlib (Packagist)
before 2.8.32
2.8.32
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 2 Feb 2023
    CVE ID reserved by VulDB.
  2. 4 Feb 2023
    Published in the CVE List.
  3. 16 Apr 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (Exploit-DB).

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
1 entry
GitHub proof of concepts
None known
Exploit-DBEDB-ID 52454web application exploit for php, published 3 Dec 2025
Referencegithub.comnamed as exploit in the CVE record

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Same weakness: Cross-site scripting

All CWE-79 vulnerabilities

References
Cite this page

Patchminder. CVE-2018-25080: Cross-site scripting in the mobiledetect/mobiledetectlib package. https://patchminder.com/cve/cve-2018-25080/ (accessed 5 December 2026).