Cross-site Scripting in MobileDetect
Moderate severity
GitHub Reviewed
Published
Feb 4, 2023
to the GitHub Advisory Database
•
Updated Oct 20, 2023
Description
Published by the National Vulnerability Database
Feb 4, 2023
Published to the GitHub Advisory Database
Feb 4, 2023
Reviewed
Feb 14, 2023
Last updated
Oct 20, 2023
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.
References