{"id":"MAL-2026-15494","revision":null,"records":[{"revision":"0cf06d67255d4b2b8fa35ae086d4fbc0","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-15494","aliases":["GHSA-rg27-qr39-ch6w"],"title":"Malicious code in @7nohe/openapi-react-query-codegen (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ab8f8efdad9084d2a7c5ae5058ffc18886d68bfe1c676239fd7e0d41342fc700)\nThe 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.\n\n## Source: ghsa-malware (4cb5796bf3e7e7370e84627781c082d359c34de6b1a32799f127df37c5418cf7)\nAny 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.\n","state":0,"publishedAt":"2026-08-28T22:59:24+00:00","modifiedAt":"2026-08-29T03:30:10.3343681+00:00","affected":[{"ecosystem":"npm","name":"@7nohe/openapi-react-query-codegen","ranges":[],"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"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@7nohe/openapi-react-query-codegen/v/3.0.4","https://www.npmjs.com/package/@7nohe/openapi-react-query-codegen/v/1.6.3","https://www.npmjs.com/package/@7nohe/openapi-react-query-codegen/v/3.0.3","https://www.npmjs.com/package/@7nohe/openapi-react-query-codegen/v/0.5.4","https://www.npmjs.com/package/@7nohe/openapi-react-query-codegen/v/0.5.5","https://www.npmjs.com/package/@7nohe/openapi-react-query-codegen/v/2.2.1","https://www.npmjs.com/package/@7nohe/openapi-react-query-codegen/v/2.2.2","https://www.npmjs.com/package/@7nohe/openapi-react-query-codegen/v/1.6.4","https://github.com/advisories/GHSA-rg27-qr39-ch6w","https://www.npmjs.com/package/@7nohe/openapi-react-query-codegen/v/0.0.0-365d4eb738d3146583431948d3ba6e27a32556be"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-15494","license":"OSV · upstream source license applies","key":"osv:MAL-2026-15494","identifiers":["MAL-2026-15494","GHSA-rg27-qr39-ch6w"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-20T06:22:39.4145834+00:00","complete":true,"records":1786,"lastAttemptAt":"2026-11-20T06:22:39.4145834+00:00","lastSuccessAt":"2026-11-20T06:22:39.5788001+00:00","error":null,"lastVerifiedAt":"2026-11-20T06:22:39.578801+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-ab394367b327976f2e615091908e1dede6760751304792bb06c748f95767cbef-6376c14d1b2afa2c58b2644daaac890593a2420919a93290b71d07498325af2c","complete":true,"records":429286,"lastAttemptAt":"2026-11-20T06:20:58.096677+00:00","lastSuccessAt":"2026-11-20T06:20:58.0492144+00:00","error":null,"lastVerifiedAt":"2026-11-20T06:20:58.096677+00:00","snapshotPublishedAt":"2026-11-20T05:30:37+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-da45093e71d649d2a554b3bd5a9e8df5","complete":false,"records":13903,"lastAttemptAt":"2026-11-20T06:32:24.7074092+00:00","lastSuccessAt":"2026-11-20T06:32:24.703+00:00","error":"425 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-20T06:32:24.703+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13447,"expectedIdentifiers":13951,"failedIdentifiers":425},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-20T06:22:39.4145834+00:00","complete":true,"records":1130,"lastAttemptAt":"2026-11-20T06:22:39.4145834+00:00","lastSuccessAt":"2026-11-20T06:22:39.5796864+00:00","error":null,"lastVerifiedAt":"2026-11-20T06:22:39.5796893+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-6d24c3e322db49599a6b361ae7bc1c2a","complete":true,"records":13915,"lastAttemptAt":"2026-11-20T06:22:52.7613053+00:00","lastSuccessAt":"2026-11-20T06:22:52.757+00:00","error":null,"lastVerifiedAt":"2026-11-20T06:22:52.757+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13951,"expectedIdentifiers":13951,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-8c782c8bda9dbab8135c62bfbc9a19fa3557f15c26fbd641daea6b40b297253e","complete":true,"records":9981,"lastAttemptAt":"2026-11-20T06:22:39.3691699+00:00","lastSuccessAt":"2026-11-20T01:30:46.6941716+00:00","error":null,"lastVerifiedAt":"2026-11-20T06:22:39.3691699+00:00","snapshotPublishedAt":"2026-11-20T00:33:13+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-94b3a229089d62296b97f627a772880f88ab7164d62486372661c0a39e321234","complete":true,"records":2019,"lastAttemptAt":"2026-11-20T06:20:58.154705+00:00","lastSuccessAt":"2026-11-20T01:29:01.8774014+00:00","error":null,"lastVerifiedAt":"2026-11-20T06:20:58.154705+00:00","snapshotPublishedAt":"2026-11-20T00:17:59+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-7ce196026235c6501d0b2fb81592d1b9dc06e8705525d41efefd322e75f6c22f","complete":true,"records":3200,"lastAttemptAt":"2026-11-20T06:22:39.3839908+00:00","lastSuccessAt":"2026-11-20T01:30:49.8670987+00:00","error":null,"lastVerifiedAt":"2026-11-20T06:22:39.3839908+00:00","snapshotPublishedAt":"2026-11-20T00:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-48dc58366e84747266d952a974db58af05b9135fecb523dc6098e26bc0c28cd0","complete":true,"records":232824,"lastAttemptAt":"2026-11-20T06:22:39.2216934+00:00","lastSuccessAt":"2026-11-20T06:22:38.137363+00:00","error":null,"lastVerifiedAt":"2026-11-20T06:22:39.2216934+00:00","snapshotPublishedAt":"2026-11-20T06:18:24+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}