npm package report

Is @7nohe/openapi-react-query-codegen safe?

10 versions of @7nohe/openapi-react-query-codegen were compromised. Other versions are not flagged as malicious.

Do not install the 10 versions listed below

CRITICAL

Compromised releases. Added to CyberXYZ 2026-08-28, OSV malicious-package feed (Google / OpenSSF).

// what we observed

The tarball ships a binding.gyp at the package root whose conditions field abuses GYP's Python expression evaluator to walk ().__class__.__base__.__subclasses__() to catch_warnings, retrieve __import__ via _module.__builtins__, load os, and call os.system('node 3FWCvzduYZg.js') (the command is Unicode-escape-obfuscated). Because a binding.gyp at the package root causes npm install to invoke node-gyp rebuild automatically — even with no lifecycle script declared — this executes shell on every installer during configure. The launched sibling file 3FWCvzduYZg.js is a 5.4 MB blob consisting of a single try{Function(function(a,k){...XOR...}([large int array], key))(...)} construct: an XOR-decoded string passed to Function() and invoked, a loader/dropper shape whose body cannot be inspected without evaluation. The referenced native source (dog.c) is absent from the tarball, so the binding.gyp has no legitimate build purpose. package.json declares "files": ["dist"], but binding.gyp and 3FWCvzduYZg.js sit at the tarball root and are honored regardless — an inclusion gap consistent with smuggled payload added outside the declared publish surface. The package's advertised purpose is a React Query code generator, which requires no native addon and no multi-megabyte obfuscated JS payload. Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Reported by Amazon Inspector and GitHub Advisory Database via OSV.

// versions and what to do
Malicious
3.0.4, 1.6.3, 3.0.3, 0.5.4, 0.5.5, 2.2.1, 2.2.2, 1.6.4, 0.0.0-ec7876d6c917dad516ba69bbfafc948b834bf0ab, 0.0.0-365d4eb738d3146583431948d3ba6e27a32556be
Move to
3.0.2 newest 3.x release, no known advisory
2.2.0 newest 2.x release, no known advisory
1.6.2 newest 1.x release, no known advisory
0.5.3 newest 0.x release, no known advisory

If one of these versions was installed, remove it and treat the credentials, tokens and SSH keys on that machine as exposed: rotate them. Check CI runners and container images that installed it too.

npm install @7nohe/openapi-react-query-codegen@3.0.2

OSV recordreferencereferencereferencereferencereferencereferencereferencereferenceadvisory

// reach

1 direct dependencies

1 carry known advisories, worst HIGH

1 packages depend on it

an advisory here reaches each of them

Create a free accountfor every dependency path, dependent and what to upgrade
// ai model usage

Tracked for PyPI packages. HuggingFace models declare Python dependencies, so npm packages are not covered.



Checked 2026-10-31 at 00:03 UTC. Updated continuously from NVD, GHSA, OSV and CNA feeds.

Think a verdict here is wrong? Tell us — we respond within 2 business days.