Advisory

GHSA-pjwm-rvh2-c87w

Also known as: CVE-2021-4229

Summary

Embedded malware in ua-parser-js

Details

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-10-22 20:38 UTC
Modified
2026-07-15 22:30 UTC

Affected packages and fixes

ua-parser-js

npm · All systems

Affected

  • introduced 0.7.29, fixed 0.7.30 (semver)

Fixed versions

0.7.30

Fix

ua-parser-js

npm · All systems

Affected

  • introduced 0.8.0, fixed 0.8.1 (semver)

Fixed versions

0.8.1

Fix

ua-parser-js

npm · All systems

Affected

  • introduced 1.0.0, fixed 1.0.1 (semver)

Fixed versions

1.0.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences