Critical Security Breach in @voiceflow/pino-pretty: Malicious Code Detected
Summary
MAL-2025-191365: Malicious code in @voiceflow/pino-pretty (npm). Affects @voiceflow/pino-pretty versions 4.4.1 – 4.4.2. 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 @voiceflow/pino-pretty package is a popular utility in the Node.js ecosystem, designed to enhance the logging experience by providing pretty-printing capabilities for logs generated by the Pino logger. It is widely used in applications that require structured logging for better readability and debugging. However, this package has recently been compromised, exposing users to significant security risks.
Vulnerability Detail
The vulnerability originates from a malicious NPM worm known as Sha1-Hulud: The Second Coming, which has infected the @voiceflow/pino-pretty package. This worm is capable of stealing sensitive tokens and credentials from users' environments and publishing them to GitHub. Additionally, it can propagate itself to other NPM packages owned by the user and establish persistence through GitHub actions. The worm poses a severe threat as it may also delete the user's home directory, leading to potential data loss.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @voiceflow/pino-pretty
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, users can remove the @voiceflow/pino-pretty package from their project until a secure version is confirmed. This can be done using the command: npm uninstall @voiceflow/pino-pretty. Additionally, users should review their environment for any unauthorized access or changes made by the worm.
Conclusion
The @voiceflow/pino-pretty package has been compromised by a malicious NPM worm, posing significant security risks to users. Immediate action is required to update or remove the package to protect sensitive information and maintain the integrity of your applications. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in the future.
See every vulnerability recorded for @voiceflow/pino-pretty →
FAQ
Immediately uninstall the @voiceflow/pino-pretty package and check your environment for any unauthorized access or changes.
You can use Vulert, a tool that monitors and alerts for open-source vulnerabilities in real-time. Simply upload your package-lock.json file to the Vulert playground at Vulert Scanner to check for vulnerabilities.
The worm can steal sensitive tokens and credentials, propagate to other packages, and potentially delete your home directory, leading to data loss and unauthorized access.
Regularly update your dependencies, monitor your packages for vulnerabilities using tools like Vulert, and review your code for any suspicious changes.
Detailed information can be found in the vulnerability report on GitHub and through security advisories related to the @voiceflow/pino-pretty package.