All CVEs / Ua-parser-js Project
CVE-2021-4229Ua-parser-js Project Ua-parser-js
High 8.8 No auth needed
Follow: this CVE · Ua-parser-js Project · Ua-parser-js Project Ua-parser-js We alert you by email or Slack (account required).
- 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
- 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.
What to do
- Apply the vendor's security update for Ua-parser-js.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| ua-parser-js_project | ua-parser-js | 0.7.29 |
| ua-parser-js_project | ua-parser-js | 0.8.0 |
| ua-parser-js_project | ua-parser-js | 1.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Third Party Advisory
- github.com Issue Tracking Patch Third Party Advisory
- vuldb.com Third Party Advisory VDB Entry