Skip to main content
MalwarePublished

array-flatten-utils (npm) · Malicious Code

Affects array-flatten-utilsSource GCVE Database

0

Malicious package : remove array-flatten-utils and rotate any secrets on hosts that installed it.

Data as of 23 Nov 2026, 09:56 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-20346

What to do

Remove array-flatten-utils 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
npmarray-flatten-utilsAffected
  • 1.0.1 – 1.0.5
4 affected builds
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 'array-flatten-utils' masquerades as a simple array utility but contains malicious native addons and a large obfuscated payload. It loads platform-specific native modules that decode and execute a hidden JavaScript payload, dropping and running files stealthily. Execution is triggered only in CI/build environments and avoids detection by common analysis tools and debuggers. This behavior indicates a staged loader designed to compromise CI environments where sensitive credentials and tokens are present.

References

Community reviews

Loading reviews…