Advisory

MAL-2026-6359

Also known as: GHSA-2gqj-wrf5-35w8

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

Malicious code in html-to-gutenberg (npm)

Details

---
_-= Per source details. Do not edit below this line.=-_

Source: amazon-inspector (ad55bd01687902eea54021b3d30ce0b10f795a1521b425b32e57ef46b7a4ae77)
The published tarball contains api.js at the package root, a heavily obfuscated loader using an obfuscator.io-style XOR-decoded string table (key 0x46) that reconstructs identifiers including 'constructor', stashes require and module on the global object, and uses Function(...) to compile and immediately invoke an approximately 9.6 KB decoded payload. The file is referenced only by the author's manual scripts.build step (node api.js && tsc); it is not referenced by the package's main entry (index.js), not imported by any reachable module, and not invoked by the declared postinstall. The postinstall script performs a local file-copy of vendor/fetch-page-assets/index.ts into node_modules via fs.copyFileSync with no network I/O and no shell exec of api.js. Because the obfuscated loader is dormant on both npm install and require of the package, no installer-harm dataflow is produced in normal consumer use, but shipping an obfuscated dynamic-eval loader with concealed payload contents in a published tarball is an unusual transparency and supply-chain hygiene concern.

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.

Severity

Not rated by the source.

Dates

Published
2026-06-24 01:51 UTC
Modified
2026-10-29 14:30 UTC

Affected packages and fixes

html-to-gutenberg

npm · All systems

Affected

  • Versions: 4.2.11, 4.2.12, 4.2.13, 4.2.14, 4.2.15, 4.2.16, 4.2.17, 4.2.18, 4.2.19, 4.2.20, 4.2.21, 4.2.22, 4.2.24, 4.2.25, 4.2.26

Fixed versions

None listed

Fix

No fixed version is listed.

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: OpenSSF Malicious Packages · Apache-2.0

Sources & licences