Critical Malicious Code Vulnerability in pino-req Package
Summary
MAL-2025-5947: Malicious code in pino-req (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 pino-req package is a middleware for logging HTTP requests in Node.js applications. It is designed to enhance the performance and usability of logging by providing structured logs. However, this package has been identified to contain malicious code that compromises the security of any system where it is installed.
Vulnerability Detail
The vulnerability originates from embedded malicious code within the pino-req package. This code can lead to full system compromise, allowing unauthorized access to sensitive information such as secrets and keys stored on the affected machine. The malicious nature of this code poses significant risks, as it can manipulate system operations and potentially lead to data breaches.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall pino-req
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 workaround, consider using alternative logging middleware that does not have known vulnerabilities. Ensure to audit your dependencies regularly to avoid similar issues in the future.
Conclusion
The pino-req package has been identified as containing malicious code that poses a serious security risk. Immediate action is required to remove the package and secure any sensitive information. Regular monitoring and auditing of dependencies are essential to prevent future vulnerabilities.
See every vulnerability recorded for pino-req →
FAQ
You should immediately remove the pino-req package and rotate any sensitive information stored on your system.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
Failing to address this vulnerability can lead to unauthorized access to your system, potential data breaches, and loss of sensitive information.
Currently, there is no patched version available. The best course of action is to remove the package entirely.
Regularly audit your dependencies, use tools like Vulert to monitor for vulnerabilities, and consider using alternative packages with a better security track record.