{"id":"MAL-2026-10402","revision":null,"records":[{"revision":"1afd2f592c9843d28fe3548d0ab32aef","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10402","aliases":[],"title":"Malicious code in @gleamkit/ws (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (8fc9213fe9e786988b3fd882b571f03aeaa1487b8006badb837b4e804da66eee)\nThe package publishes under scope `@gleamkit/ws` while copying the `ws` package's description, homepage, repository, author, and README verbatim, and bundling the legitimate `ws` source so it appears functional. Appended to `lib/websocket.js` after the copied WebSocket implementation is a heavily obfuscated payload (base64+RC4 string decoder over a ~700-entry rotated string array, hex-named identifiers, duplicated as two sequential IIFEs) that reconstructs hostnames, paths, environment keys, and spawn arguments at runtime. On every load — `index.js` (main) and `wrapper.mjs` both pull in `./lib/websocket` — the payload issues an HTTPS request to fetch an external binary, AES-256-GCM decrypts it, writes it under `os.tmpdir()`, chmods it to 0o755, and spawns it as a detached, `unref()`ed child process with `windowsHide:true`, then calls `process.exit`. A marker env variable gate (`process.env[d]!== e`) is used to avoid re-entry. Because require/import is the trigger, any project that installs and loads `@gleamkit/ws` executes attacker-controlled bytes fetched from a remote host at load time.\n","state":0,"publishedAt":"2026-07-13T06:00:14+00:00","modifiedAt":"2026-07-13T07:47:05.6667113+00:00","affected":[{"ecosystem":"npm","name":"@gleamkit/ws","ranges":[],"versions":["8.21.3"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@gleamkit/ws/v/8.21.3"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10402","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10402","identifiers":["MAL-2026-10402"]},"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-25T02:08:01.9133601+00:00","complete":true,"records":1795,"lastAttemptAt":"2026-11-25T02:08:01.9133601+00:00","lastSuccessAt":"2026-11-25T02:08:02.0783686+00:00","error":null,"lastVerifiedAt":"2026-11-25T02:08:02.0783693+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-8d356adab43082cb10bb7c033ed58312cf2ad2f0fb10e0afdf27fc89fa361f3b-0012378aa59a986b42187e37fffbd489c5b7f90eb703f69cdb43102b36710ee7","complete":true,"records":431853,"lastAttemptAt":"2026-11-25T02:08:01.1959946+00:00","lastSuccessAt":"2026-11-25T02:08:01.184173+00:00","error":null,"lastVerifiedAt":"2026-11-25T02:08:01.1959946+00:00","snapshotPublishedAt":"2026-11-25T01:25:35+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-d49d8b70cd084071bbd22cffb43a1943","complete":false,"records":13938,"lastAttemptAt":"2026-11-25T02:08:49.486338+00:00","lastSuccessAt":"2026-11-25T02:08:49.481+00:00","error":"65 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-25T02:08:49.481+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13910,"expectedIdentifiers":13986,"failedIdentifiers":65},{"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-25T02:08:01.9133601+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-25T02:08:01.9133601+00:00","lastSuccessAt":"2026-11-25T02:08:02.0794593+00:00","error":null,"lastVerifiedAt":"2026-11-25T02:08:02.0794596+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-2197a83eed4e40bdaa6104e284ac6aa3","complete":false,"records":13950,"lastAttemptAt":"2026-11-25T02:08:27.5043289+00:00","lastSuccessAt":"2026-11-25T02:08:27.5+00:00","error":"25 identifier lookups failed; latest failures include request timeout. Other identifiers were checked independently.","lastVerifiedAt":"2026-11-25T02:08:27.5+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13961,"expectedIdentifiers":13986,"failedIdentifiers":25},{"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-e743412268199d418c20ac5ea5d5eefbef4a1c78fcbacada525fcf2201b41d4a","complete":true,"records":10077,"lastAttemptAt":"2026-11-25T02:08:01.8258973+00:00","lastSuccessAt":"2026-11-24T23:11:09.9983084+00:00","error":null,"lastVerifiedAt":"2026-11-25T02:08:01.8258973+00:00","snapshotPublishedAt":"2026-11-24T22:48: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-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-25T02:08:01.2545159+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-25T02:08:01.2545159+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+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-40938cbac3e2265a24e0d129a60138a855ec8a44cbd619ad6c0de0b22c0e253f","complete":true,"records":3221,"lastAttemptAt":"2026-11-25T02:08:01.8441406+00:00","lastSuccessAt":"2026-11-24T22:27:06.1844325+00:00","error":null,"lastVerifiedAt":"2026-11-25T02:08:01.8441406+00:00","snapshotPublishedAt":"2026-11-24T22:03:27+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-9c9951438d6c717a698ba55ff3f940cbec4dcd9513985b5620a301383384f82e","complete":true,"records":233046,"lastAttemptAt":"2026-11-25T02:08:01.7245427+00:00","lastSuccessAt":"2026-11-25T01:18:28.6314102+00:00","error":null,"lastVerifiedAt":"2026-11-25T02:08:01.7245427+00:00","snapshotPublishedAt":"2026-11-25T00:48:33+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}