{"id":"MAL-2026-16049","summary":"Malicious code in tailwindcss-aspectratio-styles (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (9b995eb02f80f9037beda9f8a864f55109e054925175289df0c1b29ed8011bc3)\nsrc/index.js, referenced by the package main and executed on require(), performs an HTTP GET to http://tailwindlan.online, writes the response body to a sibling file, and immediately require()s that file, giving the operator of tailwindlan.online arbitrary code execution in the installer's Node.js process at import time. The fetch uses plain HTTP with no integrity or signature check, and the domain is unrelated to the tailwindlabs project. The package name resembles the official @tailwindcss/aspect-ratio plugin, and package.json's repository field points at tailwindlabs/tailwindcss-aspect-ratio to mimic the upstream; the legitimate plugin code is preserved verbatim with the remote-fetch-and-execute block appended to the end of the single minified line.\n","modified":"2026-09-08T19:30:05.733602503Z","published":"2026-09-08T19:05:59Z","database_specific":{"malicious-packages-origins":[{"sha256":"3befad00c0d8d9cadf54366894d4308bc939736ab4f3e1013b97486a33b721a8","source":"amazon-inspector","versions":["0.3.5"],"id":"IN-MAL-2026-019665","import_time":"2026-09-08T19:15:03.643402591Z","modified_time":"2026-09-08T19:05:59Z"},{"source":"amazon-inspector","versions":["0.3.4"],"id":"IN-MAL-2026-019667","import_time":"2026-09-08T19:15:03.699484639Z","modified_time":"2026-09-08T19:06:15Z","sha256":"9b995eb02f80f9037beda9f8a864f55109e054925175289df0c1b29ed8011bc3"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/tailwindcss-aspectratio-styles/v/0.3.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/tailwindcss-aspectratio-styles/v/0.3.4"}],"affected":[{"package":{"name":"tailwindcss-aspectratio-styles","ecosystem":"npm","purl":"pkg:npm/tailwindcss-aspectratio-styles"},"versions":["0.3.5","0.3.4"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"evidence_files":[{"path":"src/index.js","sha256":"0c12919f950b315f3b5e935f400ce3d6594b5c2a0336b3b2f54024ce506e4877","tlsh":"873140a14ac191045862ba9653a19c02e7dfa1b4ce7f5082eac54cb907c1dc1fb13ebb"},{"path":"package.json","sha256":"ac81d360bf27878efadc98eb97326a731fc09190410f4c2d8d77bd789b2af2d7","tlsh":"7c017822ce240e7301e4717197b9059762a308234469bc0e32c6851ccb8c5aff0fa6ad"}],"package_integrity":[{"filename":"tailwindcss-aspectratio-styles-0.3.5.tgz","hashes":{"sha1":"e7c753d6053e4aeabfd6a9c8313d380cf6c16edf","sha512_sri":"sha512-4pbJxSIxxCAvjl0GAII/L3lP57LCom9fWJtkG/F8vq3y4KWfLc0M5XWdW8bazMQUhICupRuurabycMz7ymJy3g=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/tailwindcss-aspectratio-styles/MAL-2026-16049.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}