npmWorst: High7 advisories

ua-parser-js: known vulnerabilities

ua-parser-js has 7 reviewed security advisories in the GitHub Advisory Database — 6 high, 1 moderate. The most recent was published 2026-06-15. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the ua-parser-js versions running across your servers, containers and images, and ranks what to patch first.

How to fix ua-parser-js

Upgrade ua-parser-js to a release at or above the fixed version shown for each advisory below. For npm:

npm install ua-parser-js@2.0.10 (or run npm audit fix)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (7)

UAParser.js: Unbounded `Sec-CH-UA-Model` parsing can trigger ReDoS in `withClientHints()` Moderate 5.3 CWE-1333 CWE-400 — Affected: from 2.0.1 up to 2.0.10. Fixed in 2.0.10. Published 2026-06-15. GHSA-9h5v-pfqq-x599 · CVE-2026-48125
ReDoS Vulnerability in ua-parser-js version High 7.5 CWE-1333 CWE-400 — Affected: from 0.8.0 up to 1.0.33. Fixed in 1.0.33. Published 2023-01-26. GHSA-fhg7-m89q-25r3 · CVE-2022-25927
Duplicate Advisory: Embedded malware in ua-parser-js High 8.8 CWE-829 CWE-912 — Affected: from 1.0.0 up to 1.0.1. Fixed in 1.0.1. Published 2022-05-24. GHSA-236c-vhj4-gfxg
Embedded malware in ua-parser-js High 8.8 CWE-506 CWE-912 — Affected: from 1.0.0 up to 1.0.1. Fixed in 1.0.1. Published 2021-10-22. GHSA-pjwm-rvh2-c87w · CVE-2021-4229
Regular Expression Denial of Service (ReDoS) in ua-parser-js High 7.5 CWE-400 — Affected: from 0.7.14 up to 0.7.24. Fixed in 0.7.24. Published 2021-03-17. GHSA-78cj-fxph-m83p · CVE-2021-27292
ua-parser-js Regular Expression Denial of Service vulnerability High 7.5 CWE-400 — Affected: before 0.7.23. Fixed in 0.7.23. Published 2020-12-11. GHSA-394c-5j6w-4xmx · CVE-2020-7793
Regular Expression Denial of Service in ua-parser-js High 7.5 CWE-400 — Affected: before 0.7.22. Fixed in 0.7.22. Published 2020-09-16. GHSA-662x-fhqg-9p8v · CVE-2020-7733

Find ua-parser-js across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.