{"id":"MAL-2026-16348","revision":null,"records":[{"revision":"5abb1b0d07ef4411951d26d34b2bf8b8","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-16348","aliases":[],"title":"Malicious code in hardhat-base (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (a65f09d6bfd4d7c28183a13e64a9eb5e989fa7b24fbf92c049a044accefe4950)\nPackage presents itself as a pino-compatible logger (module.exports.pino = middleware; keywords fast/logger/stream/json) but ships an RCE loader. index.js spawns lib/caller.js as a detached child process on middleware invocation. caller.js reads a base64-encoded URL from a fake process.env-shaped constant (DEV_API_KEY), decodes it via atob to https://ipcheck-hashed.vercel.app/api/auth/f1f097d93c318c92f0c5, POSTs to that endpoint via axios, and passes the response body to new Function.constructor(\"require\", s) — invoking the returned handler with the real require function. Any consumer that requires this package and calls the exported middleware fetches and executes arbitrary attacker-controlled JavaScript with full Node.js require access. The base64 concealment of the endpoint inside fake env-var constants, the detached child spawn, the cover-story pino API surface, and the mismatch with the manifest description (vulnerability-management text) confirm intentional supply-chain attack rather than an insecure update mechanism.\n","state":0,"publishedAt":"2026-09-21T16:41:31+00:00","modifiedAt":"2026-09-21T16:45:05.1806261+00:00","affected":[{"ecosystem":"npm","name":"hardhat-base","ranges":[],"versions":["2.2.2","2.2.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/hardhat-base/v/2.2.2","https://www.npmjs.com/package/hardhat-base/v/2.2.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-16348","license":"OSV · upstream source license applies","key":"osv:MAL-2026-16348","identifiers":["MAL-2026-16348"]},"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-13T00:18:30.1652899+00:00","complete":true,"records":1779,"lastAttemptAt":"2026-11-13T00:18:30.1652899+00:00","lastSuccessAt":"2026-11-13T00:18:30.3250321+00:00","error":null,"lastVerifiedAt":"2026-11-13T00:18:30.3250387+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-64752486c567b55b31fb0d7225f5222bcd0019564ac0ac5f0649e242c7b19299-7a7e1fdeef3ba1f1b51268732273968b5a0f06b62b186f8adb31c253bf3cf0c8","complete":true,"records":424917,"lastAttemptAt":"2026-11-13T00:16:35.4099257+00:00","lastSuccessAt":"2026-11-13T00:16:35.1139447+00:00","error":null,"lastVerifiedAt":"2026-11-13T00:16:35.4099257+00:00","snapshotPublishedAt":"2026-11-12T23:21:27+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-a1d8e578366a4297bb5f7cb00609ab1a","complete":false,"records":13793,"lastAttemptAt":"2026-11-13T00:26:16.9996132+00:00","lastSuccessAt":"2026-11-13T00:26:16.998+00:00","error":"60 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-13T00:26:16.998+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13786,"expectedIdentifiers":13846,"failedIdentifiers":60},{"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-13T00:18:30.1652899+00:00","complete":true,"records":1123,"lastAttemptAt":"2026-11-13T00:18:30.1652899+00:00","lastSuccessAt":"2026-11-13T00:18:30.3258208+00:00","error":null,"lastVerifiedAt":"2026-11-13T00:18:30.325821+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-8eb343e044d94bc7b589ef4b322b632f","complete":true,"records":13781,"lastAttemptAt":"2026-11-13T00:18:31.6408283+00:00","lastSuccessAt":"2026-11-13T00:18:31.638+00:00","error":null,"lastVerifiedAt":"2026-11-13T00:18:31.638+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13846,"expectedIdentifiers":13846,"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-93e76d404e1aeb6a7e8902f5ffa06211fc86dea3b1958e297abb2668aa5e6e8c","complete":true,"records":9952,"lastAttemptAt":"2026-11-13T00:18:30.1227543+00:00","lastSuccessAt":"2026-11-12T23:19:15.5239119+00:00","error":null,"lastVerifiedAt":"2026-11-13T00:18:30.1227543+00:00","snapshotPublishedAt":"2026-11-12T23:03:02+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-4d60731753a2f72e455d1086e7203d0ef10843936dcc1cf2b45135e2caa204b0","complete":true,"records":2012,"lastAttemptAt":"2026-11-13T00:16:35.5614029+00:00","lastSuccessAt":"2026-11-12T18:16:50.7862525+00:00","error":null,"lastVerifiedAt":"2026-11-13T00:16:35.5614029+00:00","snapshotPublishedAt":"2026-11-12T17:48:11+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-20d1a8ab073a1c13ab2143dbcadb34ebb8edf1e18e16482b448513662c3d1e12","complete":true,"records":3127,"lastAttemptAt":"2026-11-13T00:18:30.1350719+00:00","lastSuccessAt":"2026-11-12T22:18:31.0338213+00:00","error":null,"lastVerifiedAt":"2026-11-13T00:18:30.1350719+00:00","snapshotPublishedAt":"2026-11-12T22:18:06+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-5a96a544861f83515dc71f7117079dd153b5d85f9a6a43432707425b8e40156c","complete":true,"records":231742,"lastAttemptAt":"2026-11-13T00:18:29.998549+00:00","lastSuccessAt":"2026-11-13T00:18:28.4870072+00:00","error":null,"lastVerifiedAt":"2026-11-13T00:18:29.998549+00:00","snapshotPublishedAt":"2026-11-12T23:48:08+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}