@hrmony/middlewares (npm) · Malicious Code
Affects @hrmony/middlewaresSource GCVE Database
Malicious package : remove @hrmony/middlewares and rotate any secrets on hosts that installed it.
Data as of 29 Sep 2026, 21:25 UTC
Malicious package
Published to npm · OSV MAL-2026-17269
What to do
Remove @hrmony/middlewares 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@hrmony/middlewares | 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 '@hrmony/middlewares' is a malicious package designed to exfiltrate AWS instance metadata, IAM credentials, environment variables, and Kubernetes secrets to a hardcoded external server. It impersonates the legitimate '@harmony/middlewares' package by using a similar name. Installing or running this package compromises the host, potentially exposing all stored secrets and keys.