Malicious code in animate-css-vite (npm)
The animate-css-vite npm package version 1.0.1 contains malicious code that fetches and executes remote code during the build process. This behavior is hidden by obfuscation techniques including RC4 and base64 encoding. The remote code execution occurs via a dynamic function call with require in scope, allowing arbitrary code execution within the consumer's build environment.
AI Analysis
Technical Summary
The animate-css-vite package version 1.0.1 includes an obfuscated function in plugin.js that, when instantiated, constructs a URL and fetches remote code at runtime. The fetched response is base64-decoded and executed dynamically using new Function with require passed in scope. This allows the remote operator to execute arbitrary code inside the consumer's build process. The obfuscation uses a 130-entry RC4 string array with multiple decoders and a self-defending console-hook stub to conceal the network destination and execution logic. Such behavior is unexpected and malicious for a PostCSS plugin, which normally does not fetch or execute remote code.
Potential Impact
Consumers of animate-css-vite version 1.0.1 who include this package in their build process risk arbitrary code execution by a remote attacker. This can lead to compromise of the build environment, potential injection of malicious code into built artifacts, and further downstream supply chain attacks.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid using animate-css-vite version 1.0.1 and consider removing or replacing this package from their build dependencies.
Malicious code in animate-css-vite (npm)
Description
The animate-css-vite npm package version 1.0.1 contains malicious code that fetches and executes remote code during the build process. This behavior is hidden by obfuscation techniques including RC4 and base64 encoding. The remote code execution occurs via a dynamic function call with require in scope, allowing arbitrary code execution within the consumer's build environment.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The animate-css-vite package version 1.0.1 includes an obfuscated function in plugin.js that, when instantiated, constructs a URL and fetches remote code at runtime. The fetched response is base64-decoded and executed dynamically using new Function with require passed in scope. This allows the remote operator to execute arbitrary code inside the consumer's build process. The obfuscation uses a 130-entry RC4 string array with multiple decoders and a self-defending console-hook stub to conceal the network destination and execution logic. Such behavior is unexpected and malicious for a PostCSS plugin, which normally does not fetch or execute remote code.
Potential Impact
Consumers of animate-css-vite version 1.0.1 who include this package in their build process risk arbitrary code execution by a remote attacker. This can lead to compromise of the build environment, potential injection of malicious code into built artifacts, and further downstream supply chain attacks.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid using animate-css-vite version 1.0.1 and consider removing or replacing this package from their build dependencies.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14226
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a85b4c2acd9273b492524f7
Added to database: 08/19/2026, 13:50:58 UTC
Last enriched: 08/19/2026, 14:34:02 UTC
Last updated: 08/19/2026, 14:34:02 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.