Advisory

MAL-2026-15494

Also known as: GHSA-rg27-qr39-ch6w

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

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

Details

---
_-= 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.

Severity

Not rated by the source.

Dates

Published
2026-08-28 22:59 UTC
Modified
2026-08-29 03:30 UTC

Affected packages and fixes

@7nohe/openapi-react-query-codegen

npm · All systems

Affected

  • Versions: 0.0.0-365d4eb738d3146583431948d3ba6e27a32556be, 0.0.0-ec7876d6c917dad516ba69bbfafc948b834bf0ab, 0.5.4, 0.5.5, 1.6.3, 1.6.4, 2.2.1, 2.2.2, 3.0.3, 3.0.4

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences