Malicious code in animate-css-vite (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-14226
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (67d6c86a03c6106e799d0817676fcc92f022b64790aab209aa9fe663c085c4e6) plugin.js contains an RC4/base64 string-array obfuscated function invoked from the exported createPlugin factory. When a consumer's build instantiates the plugin, it constructs a URL at runtime, calls fetch() against it, base64-decodes the response body, and executes the result via new Function(param, decoded)(require) inside a retry loop (up to 10 attempts, 60s timeout each). The obfuscation (130-entry RC4 string array with two indirection decoders and a self-defending console-hook stub) hides the network destination and the fetch/exec wiring; a legitimate PostCSS plugin for vendor prefixes and CSS variables has no reason to fetch and evaluate remote code. The eval runs with require in scope, giving the remote operator arbitrary code execution inside the consumer's build process.
- Source published
- 19 Aug 2026 03:37:16 UTC
- Source modified
- 19 Aug 2026 04:00:16 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.