constructor-blocks-common (npm) · Malicious Code
Affects constructor-blocks-commonSource GCVE Database
Malicious package : remove constructor-blocks-common and rotate any secrets on hosts that installed it.
Data as of 5 Aug 2026, 16:21 UTC
Malicious package
Published to npm · OSV MAL-2026-12660
What to do
Remove constructor-blocks-common from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmconstructor-blocks-common | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The npm package 'constructor-blocks-common' version 35.5.6 contains malicious code that executes during module loading. It reconstructs remote hostnames, downloads a platform-specific binary to temporary directories, sets executable permissions, and runs the binary detached from the main process. This results in remote code execution on the host installing or requiring the package. The malicious payload is disguised and obfuscated to evade detection, including a second dropper copy hidden under an 'Analytics SDK' cover story.