目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%
← 返回恶意软件包
npm active

tailwindcss-merge

MAL-2026-5632
2026-06-12 19:46:17
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in tailwindcss-merge (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
25
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmtailwindcss-merge*
npmtailwindcss-merge1.0.1
npmtailwindcss-merge1.0.2
npmtailwindcss-merge1.0.4
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-06-12T19:46:17Z","published":"2026-06-11T09:35:12Z","schema_version":"1.7.4","id":"MAL-2026-5632","aliases":["GHSA-m2xh-rw7p-69rx"],"summary":"Malicious code in tailwindcss-merge (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (37e379cbf2d39f386221b7e0896b9331c7a52dc62a74bee6ded47962a77074b7)\nPackage name `tailwindcss-merge` is a one-character edit of the popular `tailwind-merge` utility, and the README documents it as a drop-in (`import {... } from 'tailwindcss-merge'`). `src/index.ts` line 13 ends with a side-effect import `import './lib/lib.min.js';` even though the manifest claims `sideEffects: false`. `src/lib/lib.min.js` is a heavily obfuscated bootstrap that (a) stashes `require` into `global['r']` and `module` into `global['m']`, (b) uses a deterministic Knuth-style string-shuffle seeded with 2540575 to deshuffle the literal `'axhscuutcrogycrneotisjlnkdpfqmzovtrwb'` into the string `'constructor'`, (c) dereferences that to obtain the `Function` constructor, and (d) deshuffles two further opaque blobs and executes them via `Function('', decoded)(decoded2)` followed by `XZs(7942)`. The combination — typosquat name, side-effect import contradicting the manifest, capture of `require`/`module` into globals immediately before a two-stage opaque-string-to-Function eval chain — exists only to hide arbitrary code execution from review. Any consumer who imports this package (directly, or via the `source` field that bundlers like Parcel and Microbundle resolve to `src/index.ts`) executes the eval'd payload at module load with full access to `require`, enabling child-process spawn, network I/O, and filesystem reads. Manifest also points `main` at `./dist/bundle-cjs.js`, but no `dist/` directory ships in the tarball, and `author` is empty — publication-hygiene tells consistent with a hastily-assembled typosquat.\n\n## Source: ghsa-malware (757933d4ef7a3a1e94cb1316d0f0f24d6f5fcb30dd482e130c0fa348939dad66)\nAny 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.\n","affected":[{"package":{"ecosystem":"npm","name":"tailwindcss-merge"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.4","1.0.1","1.0.2"],"database_specific":{"cwes":[{"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.","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.","name":"Embedded Malicious Code"}],"indicators":{"domains":["fullnode.mainnet.aptoslabs.com","bootstrap.pypa.io","api.trongrid.io","bsc-dataseed.binance.org"],"evidence_files":[{"path":"src/index.ts","sha256":"87bf1942492d077d43efc57b03dd5cc54a1f4d61fe687c05edfe86a18e33a226","tlsh":"1701d843640fc0a9e87661ddab8cc0159a91574f6f011f53f7faafb45b58c167130349"},{"path":"src/lib/lib.min.js","sha256":"1a6283f5fd8fadf6ed71558c31c6ecc2e392ba9e4915201c2c9557b7e7b94a9d","tlsh":"f4815dc87548fdc979c082b181cb919f2c6507e2987fb1c4888e86ea55422465ab9eff"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-m2xh-rw7p-69rx"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/tailwindcss-merge/v/1.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/tailwindcss-merge/v/1.0.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/tailwindcss-merge/v/1.0.2"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"ghsa-malware","sha256":"757933d4ef7a3a1e94cb1316d0f0f24d6f5fcb30dd482e130c0fa348939dad66","import_time":"2026-06-11T09:45:30.620057741Z","id":"GHSA-m2xh-rw7p-69rx","modified_time":"2026-06-11T09:35:17Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"6ebb1de7bf4507d9f765ba4f0563b890ee1adea38d4c4387790c46a21378a650","import_time":"2026-06-12T19:44:11.658108274Z","id":"IN-MAL-2026-006132","modified_time":"2026-06-12T19:09:42Z","versions":["1.0.4"]},{"source":"amazon-inspector","sha256":"a694c8f62d66a2d813fd20d01e27f68b21effe8c4fb35c25b178dcca4cc3e7e0","import_time":"2026-06-12T19:44:11.323344243Z","id":"IN-MAL-2026-006129","modified_time":"2026-06-12T19:09:38Z","versions":["1.0.1"]},{"source":"amazon-inspector","sha256":"aef665b96f8ea46a6e95a05932aa19768a6200d1588c7d57efb6aeac22635974","import_time":"2026-06-12T19:44:11.56103428Z","id":"IN-MAL-2026-006131","modified_time":"2026-06-12T19:09:41Z","versions":["1.0.4"]},{"source":"amazon-inspector","sha256":"37e379cbf2d39f386221b7e0896b9331c7a52dc62a74bee6ded47962a77074b7","import_time":"2026-06-12T19:44:11.462034381Z","id":"IN-MAL-2026-006130","modified_time":"2026-06-12T19:09:40Z","versions":["1.0.2"]}]}}

数据来源:OpenSSF Malicious Packages · Apache-2.0