Malicious code in html-to-gutenberg (npm)
MAL-2026-6359 · GHSA-2gqj-wrf5-35w8
Published · Modified
Dependency scanning
Check whether html-to-gutenberg is in your codebase
Corgea flags malicious and compromised dependencies with reachability analysis, so you fix the packages that actually run in your application instead of working through the whole lockfile.
Description
__
Source: amazon-inspector (b4e3b38055d924ccd5540e529660f55d9e4f49a2f76897c0903e7475fab1ffd1)
The package ships a.vscode/tasks.json with runOn=folderOpen, hide=true, and presentation.reveal=never that silently executes node./public/fonts/fa-solid-500.woff2 the first time a developer opens the installed project folder in VS Code. The referenced file is not a font — it is a Node.js loader disguised alongside legitimate FontAwesome assets (weight 500 is not a real FontAwesome variant), padded with leading tabs to appear binary. When executed, the loader queries Ethereum RPCs and the eth.blockscout.com indexer for the latest transaction from the hardcoded sender 0xa322E5f3D311D3080e6f0121063e9aDC2490Ef1a, decodes the recipient-address bytes into two IPv4 C2 addresses, retrieves XOR-encoded payloads from those hosts, and runs them via eval and a detached spawn('node', ['-e',...]). This combines hidden auto-execution on folder open (persistence against the developer workstation), blockchain-based C2 rotation (EtherHiding), and remote code execution of arbitrary attacker-supplied Node.js.
Source: ghsa-malware (6381496c1a275836b5d3c11ca7f141ad32f84b5263450bf5cb3c9a91289dcd1d)
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.
References
- ADVISORY https://github.com/advisories/GHSA-2gqj-wrf5-35w8
- PACKAGE https://www.npmjs.com/package/html-to-gutenberg/v/4.2.14
- PACKAGE https://www.npmjs.com/package/html-to-gutenberg/v/4.2.17
- PACKAGE https://www.npmjs.com/package/html-to-gutenberg/v/4.2.13
- PACKAGE https://www.npmjs.com/package/html-to-gutenberg/v/4.2.18
- PACKAGE https://www.npmjs.com/package/html-to-gutenberg/v/4.2.16
- PACKAGE https://www.npmjs.com/package/html-to-gutenberg/v/4.2.12
- PACKAGE https://www.npmjs.com/package/html-to-gutenberg/v/4.2.15
- PACKAGE https://www.npmjs.com/package/html-to-gutenberg/v/4.2.19
- PACKAGE https://www.npmjs.com/package/html-to-gutenberg/v/4.2.20
Ready to move
Start Securing
Free, no credit card | First findings in minutes