Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in @7nohe/openapi-react-query-codegen (npm)

0
Unknown
Published: 08/28/2026 (08/28/2026, 22:59:24 UTC)
Source: GCVE Database
Product: @7nohe/openapi-react-query-codegen

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (ab8f8efdad9084d2a7c5ae5058ffc18886d68bfe1c676239fd7e0d41342fc700) 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. ## Source: ghsa-malware (4cb5796bf3e7e7370e84627781c082d359c34de6b1a32799f127df37c5418cf7) 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.

Affected software

npmghsa
@7nohe/openapi-react-query-codegen
Affected versions
=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

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-15494
Osv Schema Version
1.7.4
Aliases
["GHSA-rg27-qr39-ch6w"]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a92f7d8acd9273b49e75a54

Added to database: 08/29/2026, 15:16:40 UTC

Last updated: 08/29/2026, 15:19:57 UTC

Views: 1

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses