Live threats

All CVEs / Ua-parser-js Project

CVE-2021-27292Ua-parser-js Project Ua-parser-js

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
3.4%
probability of exploitation in 30 days · percentile 90
Auth required
No
Published
Mar 17, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

ua-parser-js >= 0.7.14, fixed in 0.7.24, uses a regular expression which is vulnerable to denial of service. If an attacker sends a malicious User-Agent header, ua-parser-js will get stuck processing it for an extended period of time.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ua-parser-js.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm ua-parser-js ≥ 0.7.14 < 0.7.24 0.7.24 npm install ua-parser-js@0.7.24

Per OSV / GitHub Advisories (GHSA-78cj-fxph-m83p). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
ua-parser-js_projectua-parser-js≥ 0.7.14 < 0.7.24

Official sources

References

Links published by the sources. Open them with care.