Versions 0.7.29, 0.8.0 and 1.0.0 of ua-parser-js were compromised (cryptominer & password stealer); other versions are not flagged as malicious. CyberXYZ Proxy blocks the affected versions. It also has 6 known vulnerabilities, the worst rated HIGH.
Do not install ua-parser-js 0.7.29, 0.8.0 or 1.0.0
CRITICALanalyst verified
Cryptominer & password stealer, part of the UA-Parser-JS Compromise 2021 campaign. Added to CyberXYZ 2021-10-22, verified by a CyberXYZ analyst.
// what we observed
Compromised maintainer published versions with embedded cryptominer (jsextension binary) and password-stealing malware. 7M+ weekly downloads affected.
// versions and what to do
Malicious
0.7.29, 0.8.0, 1.0.0
Move to
1.0.41 newest 1.x release, no known advisory
0.7.41 newest 0.x release, no known advisory
2.0.10 current release, no known advisory
If one of these versions was installed, remove it and treat the credentials, tokens and SSH keys on that machine as exposed: rotate them. Check CI runners and container images that installed it too.
Versions 0.7.29, 0.8.0 and 1.0.0 of ua-parser-js were compromised (cryptominer & password stealer). Other versions are not flagged as malicious.
Does ua-parser-js have known vulnerabilities?
Yes. CyberXYZ records 6 known vulnerabilities for ua-parser-js (npm), the worst rated HIGH. These include GHSA-fhg7-m89q-25r3, GHSA-394c-5j6w-4xmx, GHSA-pjwm-rvh2-c87w, GHSA-662x-fhqg-9p8v, GHSA-78cj-fxph-m83p.
Which version of ua-parser-js should I use?
Use 1.0.41 or a later release that is not named as malicious. Versions named on this report as malicious must not be installed.
How do I check ua-parser-js before installing?
Search ua-parser-js in CyberXYZ Check at https://cyberxyz.io/check?q=ua-parser-js. The xyz Scanner checks a project's dependencies, and CyberXYZ Proxy checks each package as it is installed.
Checked 2026-11-17 at 14:00 UTC. The most recent advisory here was published 2026-06-15. Updated continuously from NVD, GHSA, OSV and CNA feeds.