Malicious code in html-to-gutenberg (npm)
Description
The html-to-gutenberg npm package versions 4.2.11 through 4.2.22 contain malicious code that executes automatically when a developer opens the project folder in VS Code. This code masquerades as a font file but is actually a Node.js loader that fetches commands from blockchain-based and IP-based command and control servers, executing arbitrary attacker-supplied code on the developer's machine. The compromise allows full control of the affected computer, risking exposure of all stored secrets and keys.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The html-to-gutenberg npm package includes a malicious file disguised as a FontAwesome font variant that is executed silently via a VS Code task configured to run on folder open. This loader queries Ethereum RPC endpoints and a blockchain indexer to retrieve the latest transaction from a hardcoded sender address. It decodes recipient addresses into two IPv4 command and control servers, from which it fetches XOR-encoded payloads. These payloads are executed dynamically using eval and detached Node.js processes, enabling remote code execution and persistent compromise of the developer workstation. This attack combines stealthy auto-execution, blockchain-based C2 rotation (EtherHiding), and arbitrary code execution.
Potential Impact
Any system with this package installed or running is considered fully compromised. The attacker gains persistent remote code execution capabilities, potentially accessing all secrets and keys stored on the machine. Removal of the package does not guarantee elimination of all malicious artifacts or backdoors, as full control may have been established.
Mitigation Recommendations
Immediate removal of the html-to-gutenberg package versions 4.2.11 through 4.2.22 is required. All secrets and keys stored on affected machines should be rotated from a separate, trusted system. Due to the high likelihood of full system compromise, a thorough incident response including forensic analysis and system rebuild is recommended. Patch status is not confirmed; check vendor advisories for updates. No official fix or patch links are provided in the source data.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6359
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-2gqj-wrf5-35w8"]
- Ecosystems
- ["npm"]
Threat ID: 6a998f5facd9273b49192d43
Added to database: 09/03/2026, 15:16:47 UTC
Last enriched: 09/17/2026, 03:34:08 UTC
Last updated: 10/04/2026, 05:02:08 UTC
Views: 25
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.