-= Per source details. Do not edit below this line.=-
Package impersonates the widely-used cors Express middleware. lib/index.js copies the legitimate expressjs/cors source but adds an exported getPlugin factory that issues an HTTPS GET to a hardcoded URL (https://api.avax-test.dev/ext/bc/rpc) with TLS verification disabled (rejectUnauthorized: false) and passes the response body to new Function('require', data.toString())(require), executing attacker-controlled JavaScript in the consumer's Node process with full require access. Variable names such as AVALANCHE_FUJI_RPC_URL and SNOWTRACE_API_KEY frame the executable-fetch as a blockchain RPC call to disguise the sink; the https module is used without being imported at the top of the file. Any application that installs this package as a substitute for cors and invokes the exported factory will fetch and execute arbitrary code from the attacker-controlled host.
{
"malicious-packages-origins": [
{
"import_time": "2026-08-05T09:28:27.221473781Z",
"sha256": "13008ebbdf0853009522099f26827c7fb1ca96b5a1ab25b439914c52e1782b58",
"modified_time": "2026-08-05T09:10:36Z",
"id": "IN-MAL-2026-014577",
"versions": [
"2.8.4"
],
"source": "amazon-inspector"
},
{
"import_time": "2026-08-05T09:28:26.952882598Z",
"modified_time": "2026-08-05T09:10:11Z",
"sha256": "22824e8bbdb5a712ac4a8184e3ee62582b018a652d2ec63816d28c0b9145241f",
"id": "IN-MAL-2026-014574",
"versions": [
"1.0.0"
],
"source": "amazon-inspector"
},
{
"source": "amazon-inspector",
"modified_time": "2026-08-05T12:54:59Z",
"sha256": "59c243bfa0251c11e10ceee74a90cffa2189086cf647ad8dfe6d70ab5e3491a5",
"id": "IN-MAL-2026-014809",
"versions": [
"2.8.3"
],
"import_time": "2026-08-05T13:08:48.090593986Z"
},
{
"import_time": "2026-08-05T14:19:49.884423636Z",
"sha256": "1e29feebb380cbaf40d2570335a3800a06555185d32b40ecb06bcf82068ee0f0",
"modified_time": "2026-08-05T13:38:40Z",
"id": "IN-MAL-2026-014988",
"versions": [
"1.0.1"
],
"source": "amazon-inspector"
},
{
"import_time": "2026-08-05T14:19:47.440843739Z",
"sha256": "2cc1ef586ef953c40d232006fba01a307740b90937641c1753312d81b392f605",
"modified_time": "2026-08-05T13:18:17Z",
"id": "IN-MAL-2026-014965",
"versions": [
"2.8.0"
],
"source": "amazon-inspector"
}
]
}[
{
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
},
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
},
{
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
},
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
},
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
}
]
{
"package_integrity": [
{
"hashes": {
"sha512_sri": "sha512-iZxydqPciphFUhTCHMQgnxojrQEIRFWAh5VVwePnAg8VjhdbWf5YkK4tX8osgl/pwl5OigaQpE8JejFwf8Hqxg==",
"sha1": "503313c52834745d5f38bbdac8e36e306bb57cb5"
},
"filename": "cors-update-2.8.4.tgz"
}
],
"evidence_files": [
{
"path": "lib/index.js",
"sha256": "825f858a7b6c1f728333f0aff42490297985fe3bc833d3b9c3797bda6e07442d",
"tlsh": "50e1770ca6e236540a53b6a8db6f4c087065d217601eda897c7d27de6fc027de6e36cc"
},
{
"path": "package.json",
"sha256": "96ddf32a2dfaa09621fc13cb91677cb2bac13928f3e89ffa37c3cb366a246560",
"tlsh": "bd019c31c4741c2325cc75952ca95492f1619c5bc899fd8cb3ee036c4b9d46715fd1ae"
}
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/cors-update/MAL-2026-12174.json"