Live threats

All CVEs / Ua-parser-js Project

CVE-2021-4229Ua-parser-js Project Ua-parser-js

High 8.8 No auth needed

Priority
68
CVSS 3.1
8.8
EPSS
1.5%
probability of exploitation in 30 days · percentile 75
Auth required
No
Published
May 24, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-912, CWE-829
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

A vulnerability was found in ua-parser-js 0.7.29/0.8.0/1.0.0. It has been rated as critical. This issue affects the crypto mining component which introduces a backdoor. Upgrading to version 0.7.30, 0.8.1 and 1.0.1 is able to address this issue. It is recommended to upgrade the affected component.

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.29 < 0.7.30 0.7.30 npm install ua-parser-js@0.7.30
npm ua-parser-js ≥ 0.8.0 < 0.8.1 0.8.1 npm install ua-parser-js@0.8.1
npm ua-parser-js ≥ 1.0.0 < 1.0.1 1.0.1 npm install ua-parser-js@1.0.1

Per OSV / GitHub Advisories (GHSA-pjwm-rvh2-c87w). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
ua-parser-js_projectua-parser-js0.7.29
ua-parser-js_projectua-parser-js0.8.0
ua-parser-js_projectua-parser-js1.0.0

Official sources

References

Links published by the sources. Open them with care.