Malware in huggingface-js
Date: 2026-01
Affected: npm/huggingface-js
Attack vector: malware
Category: threat-report
Severity: Critical
CWE: CWE-506

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.


Mitigations:

Architectural layers (MAESTRO):