@flex-ng/error-component (npm) · Malicious Code
Affects @flex-ng/error-componentSource GCVE Database
Malicious package : remove @flex-ng/error-component and rotate any secrets on hosts that installed it.
Data as of 14 Jul 2026, 09:39 UTC
Malicious package
Published to npm · OSV MAL-2026-10221
What to do
Remove @flex-ng/error-component 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 |
|---|---|---|
| npm@flex-ng/error-component | 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 @flex-ng/error-component npm package is a malicious package published as part of a dependency confusion attack. It contains a preinstall hook that executes automatically during npm install, sending the installer's public IP and host telemetry to an attacker-controlled Sentry endpoint without user consent. This behavior is designed for reconnaissance to identify organizations that mistakenly install the malicious package instead of the intended private dependency. The package version 2.1.0 is affected. Removal alone may not fully remediate the compromise as the attacker may have gained broader access.