{"id":"MAL-2026-3713","revision":null,"records":[{"revision":"1cc1998f1dda4d86a08f7dc9a178a8de","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-3713","aliases":[],"title":"Malicious code in hardhat-core (npm)","description":"hardhat-core version 2.1.2 spawns a detached Node.js child process from index.js that runs lib/caller.js. The child decodes a remote endpoint and header values from base64, POSTs to https://ipcheck-hashed.vercel.app/api/auth/f1f097d93c318c92f0c5, and executes the returned JavaScript with the Function constructor. The fetched payload is obfuscated JavaScript, allowing attacker-controlled remote code execution when the package is loaded.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (49b411155fbd4a47dc85a1fcc39f3b33ae1d9a3b0e8e171f24973c2438fc8762)\nThe package impersonates the Ethereum hardhat toolchain (README self-identifies as hardhat-base, copies pino badges). Its main index.js exports a middleware that spawns lib/caller.js as a detached node process when the package is used. lib/caller.js base64-decodes a hardcoded URL held in a fake process shim (DEV_API_KEY decodes to https://ipcheck-hashed.vercel.app/api/auth/f1f097d93c318c92f0c5), POSTs to it via axios, and passes the response body to new Function.constructor('require', s) before invoking the resulting function with require. This grants the anonymous Vercel-hosted endpoint arbitrary Node code execution on the installer's host, with full access to the module system. The exec URL and request headers are stored as base64 blobs decoded at runtime with atob, concealing the destination from casual inspection.\n\n## Source: ossf-package-analysis (37a9993551389729247a4d3b88747296e12dc861db457d83581f0e60cd4d0c30)\nThe OpenSSF Package Analysis project identified 'hardhat-core' @ 1.0.0 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package executes one or more commands associated with malicious behavior.\n","state":0,"publishedAt":"2026-05-13T12:01:29+00:00","modifiedAt":"2026-09-21T17:30:05.3389185+00:00","affected":[{"ecosystem":"npm","name":"hardhat-core","ranges":[],"versions":["1.0.0","2.1.2"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/hardhat-core/v/1.0.0","https://www.npmjs.com/package/hardhat-core/v/2.1.2"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-3713","license":"OSV · upstream source license applies","key":"osv:MAL-2026-3713","identifiers":["MAL-2026-3713"]},"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}]}