{"id":"MAL-2026-10051","revision":null,"records":[{"revision":"273c0584d31e4374a1a048d379065be7","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10051","aliases":["GHSA-7p2p-g2j6-w6v3"],"title":"Malicious code in chai-deflect (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (4328eb627063ce40813ae27e3cb7ec1a967d17aa6c2bf045f0083d42e09352ea)\nOn require('chai-deflect'), index.js top-level invokes launchDeflectBootstrap() which detaches a child process running lib/caller.js. caller.js issues an HTTP GET to http://server-genimi-check.vercel.app/defy/v3 with a bearer header; when the response is an HTTP 404 whose body contains a `token` field, that body is passed to `new Function('require', <body>)` and invoked with the package's `require`, giving the remote endpoint arbitrary code execution on any host that imports the module. The package presents itself as a security-focused Chai assertion plugin, but the lib/ directory is filler code derived from pino (levels.js, multistream.js, proto.js, transport.js, worker.js) unrelated to Chai, and lib/const.js hides a base64-encoded secondary URL (https://jsonkeeper.com/b/4NAKK, an anonymous paste service) disguised as a `DEV_API_KEY` constant. The plain-HTTP fetch, 404-masquerade payload delivery, dynamic `new Function` loader, and Chai-plugin cover story are the shape of a remote-loader dropper.\n","state":0,"publishedAt":"2026-07-09T15:32:06+00:00","modifiedAt":"2026-09-01T11:31:30.4246489+00:00","affected":[{"ecosystem":"npm","name":"chai-deflect","ranges":[],"versions":["1.1.5","1.1.6"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/chai-deflect/v/1.1.5","https://www.npmjs.com/package/chai-deflect/v/1.1.6","https://github.com/advisories/GHSA-7p2p-g2j6-w6v3"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10051","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10051","identifiers":["MAL-2026-10051","GHSA-7p2p-g2j6-w6v3"]},"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-20T01:30:50.0868967+00:00","complete":true,"records":1786,"lastAttemptAt":"2026-11-20T01:30:50.0868967+00:00","lastSuccessAt":"2026-11-20T01:30:50.2988678+00:00","error":null,"lastVerifiedAt":"2026-11-20T01:30:50.2988691+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-8739c76e681f900923b900c9df0ef75cf421d39cabb54650c4b9ad19b6a76d85","complete":true,"records":429245,"lastAttemptAt":"2026-11-20T01:28:56.7391663+00:00","lastSuccessAt":"2026-11-20T01:28:56.7326152+00:00","error":null,"lastVerifiedAt":"2026-11-20T01:28:56.7391663+00:00","snapshotPublishedAt":"2026-11-20T00:37:21+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-200582b2a2c7472396b7fba97eba252d","complete":false,"records":13903,"lastAttemptAt":"2026-11-20T01:35:44.2648345+00:00","lastSuccessAt":"2026-11-20T01:35:44.331477+00:00","error":null,"lastVerifiedAt":"2026-11-20T01:35:44.331477+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"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-20T01:30:50.0868967+00:00","complete":true,"records":1130,"lastAttemptAt":"2026-11-20T01:30:50.0868967+00:00","lastSuccessAt":"2026-11-20T01:30:51.1683724+00:00","error":null,"lastVerifiedAt":"2026-11-20T01:30:51.1683802+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-43b304dc656d4b85b971690070f95280","complete":false,"records":13915,"lastAttemptAt":"2026-11-20T01:31:16.5278113+00:00","lastSuccessAt":"2026-11-20T01:31:16.525+00:00","error":null,"lastVerifiedAt":"2026-11-20T01:31:16.525+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13924,"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-20T01:30:46.9208001+00:00","lastSuccessAt":"2026-11-20T01:30:46.6941716+00:00","error":null,"lastVerifiedAt":"2026-11-20T01:30:46.9208001+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-20T01:29:01.9800827+00:00","lastSuccessAt":"2026-11-20T01:29:01.8774014+00:00","error":null,"lastVerifiedAt":"2026-11-20T01:29:01.9800827+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-20T01:30:50.0540406+00:00","lastSuccessAt":"2026-11-20T01:30:49.8670987+00:00","error":null,"lastVerifiedAt":"2026-11-20T01:30:50.0540406+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-b718f7f78fadcc4a737d68629436f35cf7b6720df78267d9153074aa304ae364","complete":true,"records":232793,"lastAttemptAt":"2026-11-20T01:30:39.0535517+00:00","lastSuccessAt":"2026-11-20T01:30:38.0218274+00:00","error":null,"lastVerifiedAt":"2026-11-20T01:30:39.0535517+00:00","snapshotPublishedAt":"2026-11-20T01:18:15+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}