Advisory

GHSA-r77c-qv68-j3pp

Also known as: CVE-2018-25080

Summary

Cross-site Scripting in MobileDetect

Details

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 name of the patch is 31818a441b095bdc4838602dbb17b8377d1e5cce. It is recommended to upgrade the affected component. The identifier VDB-220061 was assigned to this vulnerability.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-02-04 09:30 UTC
Modified
2025-04-16 16:30 UTC

Affected packages and fixes

mobiledetect/mobiledetectlib

Packagist · All systems

Affected

  • introduced 0, fixed 2.8.32 (ecosystem)

Fixed versions

2.8.32

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences