-= Per source details. Do not edit below this line.=-
Package advertises a trivial Tailwind class-name merger (a 5-line cn() helper) but its main entry dist/index.js unconditionally requires dist/lib/lib.min.js, which runs at import time. That file (a) assigns require and module onto the global object so subsequently-evaluated code can resolve modules without containing literal require/module tokens, (b) reconstructs method names and an executable body via a hand-rolled string-shuffle decoder (YWG), and (c) resolves YWG[OSN] to Function.constructor and immediately invokes it on the decoded blob, evaluating obfuscated code on every consumer's require('clsx-tailwind'). The combination of heavy string-shuffle obfuscation, dynamic Function() evaluation of the decoded output, leaking require/module to the global namespace, and a payload entirely unrelated to the package's advertised purpose is the canonical malicious-payload shape. Any process that imports this package executes attacker-controlled code with the privileges of the host application.
Any 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.
{
"malicious-packages-origins": [
{
"sha256": "25973e59fcbbe092c0fd9d1f868fb37c1b1492fb830a534806e51bbbc795935c",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"modified_time": "2026-06-11T09:35:22Z",
"source": "ghsa-malware",
"import_time": "2026-06-11T09:45:30.593439385Z",
"id": "GHSA-373j-j35f-q4gx"
},
{
"versions": [
"1.0.1"
],
"sha256": "6e1efb9d7593baede89024227d99cc6ca9fc0c86e1f0faf8dd78560174cf1b39",
"modified_time": "2026-06-12T19:09:58Z",
"source": "amazon-inspector",
"import_time": "2026-06-12T19:44:13.325371504Z",
"id": "IN-MAL-2026-006147"
},
{
"versions": [
"1.0.1"
],
"sha256": "f2be93a4dfc80ed7a86a957a9b0ef86e8f9b8c62a80b130c15c58d8aed34f75f",
"modified_time": "2026-06-12T19:09:58Z",
"source": "amazon-inspector",
"import_time": "2026-06-12T19:44:13.410890181Z",
"id": "IN-MAL-2026-006148"
}
]
}{
"evidence_files": [
{
"sha256": "294f1d358f4ec049372757af801789c84c43ff2d758f55a6eeadcab3a6fb05f5",
"path": "dist/lib/lib.min.js",
"tlsh": "9c915dd96395f9897d8041744387509f1c9405f3947ff2cc498e96ea9e4221a0bbcaff"
}
],
"domains": [
"api.trongrid.io",
"bsc-dataseed.binance.org",
"fullnode.mainnet.aptoslabs.com",
"bootstrap.pypa.io"
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/clsx-tailwind/MAL-2026-5625.json"
[
{
"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.",
"name": "Embedded Malicious Code",
"cweId": "CWE-506"
}
]