{"id":"MAL-2026-10073","summary":"Malicious code in tailwind-animate-v4 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (fd43366b04ea80c2244079c09602623af157ce00cba9ae1837005b97ffe44bdb)\nThe package presents itself as a Tailwind CSS animation plugin and reproduces the legitimate tailwindcss-animate source (including its original author metadata) verbatim in index.js. A long whitespace run at the end of the file visually hides an appended obfuscated loader. On require(), the loader permutation-decodes a string to recover the identifiers 'require', 'module', '__dirname', '__filename', and 'undefined', re-installs them on the global object, then resolves the Function constructor indirectly via a String prototype method whose name is produced by string permutation ('constructor'). It then uses Function() to compile and immediately invoke a large opaque decoded payload (uwg(4261)). This is dynamic execution of an obfuscated blob at library-load time, delivered under a name that mimics the widely used tailwindcss-animate package. Any project that adds this dependency and requires it will execute the hidden payload in the developer/build process, with full access to environment variables, filesystem, and network.\n\n## Source: ghsa-malware (5b56797c9df56f9e2ddb12ac7c8bde46a5bdb4753c002e60380012c9e2c5263a)\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","aliases":["GHSA-rh36-94jf-9566"],"modified":"2026-07-10T13:16:59.849565154Z","published":"2026-07-09T15:28:38Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-07-09T16:20:40.805709628Z","modified_time":"2026-07-09T15:28:38Z","sha256":"90507eebce1061b352492fe3e6bb9673a9b4072c5b35381df73d86b52a342889","id":"IN-MAL-2026-009102","source":"amazon-inspector","versions":["2.1.1"]},{"import_time":"2026-07-09T17:19:27.254988102Z","modified_time":"2026-07-09T16:59:10Z","sha256":"e0607a23b0fe8f0cfcaff40e021d2b66893dc14b9389c4fa498bd9f21c2987ab","versions":["2.1.0"],"source":"amazon-inspector","id":"IN-MAL-2026-009347"},{"import_time":"2026-07-09T17:19:27.5007761Z","modified_time":"2026-07-09T16:59:24Z","sha256":"f84f64cb815db4292d41676cee2df5e9e5ca2953ed29f3bd2288e83d7c3779dc","versions":["1.1.0"],"source":"amazon-inspector","id":"IN-MAL-2026-009349"},{"import_time":"2026-07-09T23:30:55.722775498Z","sha256":"fd43366b04ea80c2244079c09602623af157ce00cba9ae1837005b97ffe44bdb","modified_time":"2026-07-09T22:58:27Z","id":"IN-MAL-2026-009590","source":"amazon-inspector","versions":["2.1.2"]},{"import_time":"2026-07-10T13:00:08.054000786Z","modified_time":"2026-07-10T12:24:58Z","sha256":"5b56797c9df56f9e2ddb12ac7c8bde46a5bdb4753c002e60380012c9e2c5263a","source":"ghsa-malware","id":"GHSA-rh36-94jf-9566","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/tailwind-animate-v4/v/2.1.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/tailwind-animate-v4/v/2.1.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/tailwind-animate-v4/v/1.1.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/tailwind-animate-v4/v/2.1.2"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-rh36-94jf-9566"}],"affected":[{"package":{"name":"tailwind-animate-v4","ecosystem":"npm","purl":"pkg:npm/tailwind-animate-v4"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["2.1.1","2.1.0","1.1.0","2.1.2"],"database_specific":{"indicators":{"package_integrity":[{"filename":"tailwind-animate-v4-2.1.1.tgz","hashes":{"sha1":"ca8814be99c45753f6ce9fee7640b0135cf5d4d1","sha512_sri":"sha512-u6ehTD1lsVg1XsEIMyRTiDzORc78vtr8wgAJEDpswRiZXSgxAvCqMZoyYmB4HK4i4I38flUmC71mh1LnarMtFg=="}}],"evidence_files":[{"tlsh":"1e0284e6eb1f18174e1742971b7d05c64e7e08b0b83909feb57d109607c697c87ba3a4","sha256":"fcdbb2a38e3ff2c9f9e5edab932249b19bfeaaef08dadab01e16a6eb4adf2821","path":"index.js"},{"tlsh":"250190078a265d3313c15fac96eeadc718df5053410696c73ca4b0b8c1c8159936f597","sha256":"2ac2c0bb89b69c4c0086d303552702d2cffb0beb7efcd095c9585dbbfab013f8","path":"package.json"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/tailwind-animate-v4/MAL-2026-10073.json","cwes":[{"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","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."}]}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}