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

- Severity: Medium 5.0 (CVSS:3.1, scored by VulDB) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.52%, higher than 75% of CVEs (2026-12-02)
- Published: 2021-10-22T20:38:14.000Z
- Modified: 2026-07-15T22:30:43.045Z
- Also known as: GHSA-pjwm-rvh2-c87w
- Weaknesses: CWE-506, CWE-829, CWE-912
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulDB

## Description

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.

(As written by CVE List.)

## Affected

- unspecified ua-parser-js: 0.7.29; 0.8.0; 1.0.0
- ua-parser-js (npm): from 0.7.29 before 0.7.30; from 0.8.0 before 0.8.1; from 1.0.0 before 1.0.1
- ua-parser-js_project ua-parser-js: 0.7.29; 0.8.0; 1.0.0

## Every score

- VulDB: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.6 High `AV:N/AC:H/Au:N/C:C/I:C/A:C`

## References

- <https://github.com/advisories/GHSA-pjwm-rvh2-c87w> (third-party-advisory)
- <https://github.com/faisalman/ua-parser-js/issues/536> (issue-tracking, patch, third-party-advisory, web)
- <https://vuldb.com/?id.185453> (third-party-advisory, vdb-entry)
- <https://github.com/faisalman/ua-parser-js/issues/536#issuecomment-949772496> (web)
- <https://github.com/faisalman/ua-parser-js> (package)
- <https://www.npmjs.com/package/ua-parser-js> (web)

## Sources

- CVE List: [CVE-2021-4229](https://www.cve.org/CVERecord?id=CVE-2021-4229), CVE Terms of Use, modified 2025-04-15
- GitHub Advisory Database: [GHSA-pjwm-rvh2-c87w](https://github.com/advisories/GHSA-pjwm-rvh2-c87w), CC-BY-4.0, modified 2026-07-15
- NVD: [CVE-2021-4229](https://nvd.nist.gov/vuln/detail/CVE-2021-4229), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-4229 · Whole record: https://cve.day/CVE-2021-4229.json · Rebuilt by cve.day 2026-11-25T22:58:07.561Z
