Skip to main content
MalwarePublished

ngsw-config (npm) · Malicious Code

Affects ngsw-configSource GCVE Database

0

Malicious package : remove ngsw-config and rotate any secrets on hosts that installed it.

Data as of 19 Aug 2026, 14:28 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-14251

What to do

Remove ngsw-config 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

ProductAffectedFixed in
npmngsw-configAffected
  • =1.0.0
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 named 'ngsw-config' version 1.0.0 contains malicious code that executes during the postinstall lifecycle script. This script collects host identifiers such as hostname, platform, architecture, Node version, package name, lifecycle name, and timestamp, then sends this data without user consent to a hardcoded external endpoint. The package name mimics Angular's legitimate tooling, likely to exploit dependency confusion in internal build systems, causing them to inadvertently leak identifying metadata.

References

Community reviews

Loading reviews…