mobile-detect@0.4.3 vulnerabilities

Device detection (phone, tablet, desktop, mobile grade, os, versions)

Direct Vulnerabilities

Known vulnerabilities in the mobile-detect package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Regular Expression Denial of Service (ReDoS)

mobile-detect is a loose port of Mobile-Detect to JavaScript.

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the user agent parser. It used a regular expression (/Dell.*Streak|Dell.*Aero|Dell.*Venue|DELL.*Venue Pro|Dell Flash|Dell Smoke|Dell Mini 3iX|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b/i ) in order to parse user agents. This can cause a very moderate impact of about 10 seconds matching time for data 50k characters long.

This vulnerability is related to SNYK-PHP-MOBILEDETECTMOBILEDETECTLIB-70384.

How to fix Regular Expression Denial of Service (ReDoS)?

Upgrade mobile-detect to version 1.4.0 or higher.

<1.4.0