CVE-2021-4229
highpriority · track · 36EPSS 0.015 · 74 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5–8.8
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (9)
Products and version ranges known to be affected.
- ua-parser-js project ua-parser-js= 0.7.29nvdUScpe:2.3:a:ua-parser-js_project:ua-parser-js:*:*:*:*:*:*:*:*
- ua-parser-js project ua-parser-js= 0.8.0nvdUScpe:2.3:a:ua-parser-js_project:ua-parser-js:*:*:*:*:*:*:*:*
- ua-parser-js project ua-parser-js= 1.0.0nvdUScpe:2.3:a:ua-parser-js_project:ua-parser-js:*:*:*:*:*:*:*:*
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-pjwm-rvh2-c87wEmbedded malware in ua-parser-js2021-10-22ghsa · osvUS
The npm package `ua-parser-js` had three versions published with malicious code. Users of affected versions (0.7.29, 0.8.0, 1.0.0) should upgrade as soon as possible and check their systems for suspicious activity. See [this issue](https://github.com/faisalman/ua-parser-js/issues/536) for details as they unfold. Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (10)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2021-4229/cnnvd
- https://github.com/advisories/GHSA-pjwm-rvh2-c87wcnnvd
- https://github.com/faisalman/ua-parser-js/issues/536cnnvd
- https://vuldb.com/?id.185453cnnvd
- https://github.com/advisories/GHSA-pjwm-rvh2-c87wenisa_euvd
- https://github.com/faisalman/ua-parser-js/issues/536enisa_euvd
- https://vuldb.com/?id.185453enisa_euvd
- https://github.com/advisories/GHSA-pjwm-rvh2-c87wThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan