# CVE-2021-4229: ua-parser-js Crypto Mining backdoor

- Priority: **Routine**
- Reason: Not severe (CVSS 5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-05-24 · Modified: 2025-04-15
- Aliases: GHSA-pjwm-rvh2-c87w
- Record: https://cvemate.com/vulnerability/CVE-2021-4229 · JSON: https://cvemate.com/vulnerability/CVE-2021-4229/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 1.518%, percentile 75.468%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- Npm ua-parser-js (Npm): ≥ 0.7.29, \< 0.7.30 \| ≥ 0.8.0, \< 0.8.1 \| ≥ 1.0.0, \< 1.0.1
- ua-parser-js\_project ua-parser-js: 0.7.29 \| 0.8.0 \| 1.0.0
- unspecified ua-parser-js: 0.7.29 \| 0.8.0 \| 1.0.0

## References

- <https://github.com/advisories/GHSA-pjwm-rvh2-c87w>
- <https://github.com/faisalman/ua-parser-js/issues/536>
- <https://vuldb.com/?id.185453>
- <https://github.com/faisalman/ua-parser-js/issues/536#issuecomment-949772496>
- <https://github.com/faisalman/ua-parser-js>
- <https://www.npmjs.com/package/ua-parser-js>

---

Data as of 2026-12-05T18:53:21.229Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
