Skip to main content
MalwarePublished

@7nohe/openapi-react-query-codegen (npm) · Malicious Code

Affects @7nohe/openapi-react-query-codegenSource GCVE Database

0

Malicious package : remove @7nohe/openapi-react-query-codegen and rotate any secrets on hosts that installed it.

Data as of 9 Sep 2026, 21:38 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-15494

What to do

Remove @7nohe/openapi-react-query-codegen 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
npm@7nohe/openapi-react-query-codegenAffected
  • 0.0.0-365d4eb738d3146583431948d3ba6e27a32556be – 3.0.4
10 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 @7nohe/openapi-react-query-codegen contains malicious code embedded in its tarball. A binding.gyp file abuses node-gyp's build process to execute an obfuscated JavaScript payload during installation, resulting in arbitrary code execution. The payload is a large obfuscated loader/dropper that cannot be inspected without execution. The package's legitimate purpose does not require native addons or such payloads, indicating deliberate malicious inclusion. Any system with this package installed should be considered fully compromised, and all secrets should be rotated immediately.

References

Community reviews

Loading reviews…