Malicious Code Injection in apl-rive-renderer Package
Summary
MAL-2026-17431: Malicious code in apl-rive-renderer (npm). Affected versions are not published. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The apl-rive-renderer package is an npm dependency that is designed to facilitate rendering of Rive animations in applications. It is often used in projects that require interactive animations. However, this package has been identified as a dependency-confusion package, which poses significant security risks due to its malicious preinstall script.
Vulnerability Detail
The apl-rive-renderer package contains a malicious preinstall script that executes 'node setup.js || true' during installation. This script collects sensitive information such as hostname, username, working directory, OS, architecture, Node.js version, and configured npm registry, and sends it to a remote server via an HTTPS POST request. The package was published by an npm account that created multiple similar packages in a short time frame, indicating a potential malicious intent to exploit users.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall apl-rive-renderer
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, you can prevent the installation of this package by using npm's package-lock.json file to lock your dependencies. Additionally, consider using a private registry or a tool like Vulert to monitor your dependencies for vulnerabilities.
Conclusion
The apl-rive-renderer package poses a significant security risk due to its malicious preinstall script that collects sensitive information. Users are advised to remove the package and monitor their dependencies for vulnerabilities. Utilizing tools like Vulert can help in maintaining the security of your applications.
See every vulnerability recorded for apl-rive-renderer →
FAQ
apl-rive-renderer is an npm package used for rendering Rive animations in applications.
The malicious code collects sensitive information from the user's environment and sends it to a remote server.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
You should immediately remove the apl-rive-renderer package from your project and monitor your environment for any suspicious activity.
Vulert monitors and alerts in real-time for open-source vulnerabilities in your software using just the package-lock.json file.