tailwindcss-aspectratio-stylesnpm
Advisory published Updated
tailwindcss-aspectratio-styles is a confirmed malicious npm package (MAL-2026-16049) that typosquats a legitimate package to trick installs (malicious versions 0.3.4, 0.3.5). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in tailwindcss-aspectratio-styles (npm)
What this malware does
src/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.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
TyposquatFind it
Search your lockfiles and build artifacts for tailwindcss-aspectratio-styles (2 malicious versions).
If you installed it — respond
tailwindcss-aspectratio-styles is a typosquat — you almost certainly intended a legitimately-named package. Remove tailwindcss-aspectratio-styles, install the correct package, and rotate any secrets exposed during the install since post-install scripts may have already run.
Did it already run?
If tailwindcss-aspectratio-styles was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks tailwindcss-aspectratio-styles-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.