Critical Malicious Activity Detected in nio4r Package - MAL-2025-6738
Summary
MAL-2025-6738: Malicious code in nio4r (npm). Affects nio4r versions >= 2.0.0. 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 nio4r package is a Node.js library that provides an interface for asynchronous I/O operations. It is commonly used in applications that require non-blocking I/O, allowing developers to handle multiple connections efficiently. However, this package has been identified to communicate with a domain associated with malicious activity, raising significant security concerns.
Vulnerability Detail
The vulnerability stems from the nio4r package's ability to connect to a malicious domain, which can lead to unauthorized data access, data exfiltration, or other malicious actions. This issue was introduced in version 2.0.0 of the package. The ramifications of this vulnerability can be severe, potentially compromising the integrity and confidentiality of applications that rely on nio4r for I/O operations.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nio4r
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 measure, you can restrict network access for the application using nio4r to prevent it from communicating with the malicious domain. This can be done by configuring firewall rules or using network security groups to block outbound connections.
Conclusion
The nio4r package has a critical vulnerability that allows communication with a malicious domain, posing significant risks to applications using it. Immediate action is required to update the package and mitigate potential threats. Utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.
See every vulnerability recorded for nio4r →
FAQ
The nio4r package is used in Node.js applications to handle asynchronous I/O operations efficiently.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
The risks include unauthorized access to sensitive data, data exfiltration, and the potential for malicious actions within your application.
Yes, updating the nio4r package to the latest version will address the vulnerability.
Consider implementing network restrictions to block access to the malicious domain as a temporary workaround.