Malicious Code Detected in dasnoo-socket Package
Summary
MAL-2025-17986: Malicious code in dasnoo-socket (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 dasnoo-socket package is an npm library designed for real-time socket communication, enabling developers to build interactive applications. It provides features such as event-driven communication and data streaming. However, this package has been identified to contain malicious code, posing security risks to applications that utilize it.
Vulnerability Detail
The vulnerability in the dasnoo-socket package arises from the inclusion of malicious code that can compromise the security of applications using this library. This code can lead to unauthorized access, data breaches, or other malicious activities. The issue was introduced in version 0 and affects all subsequent versions, making it critical for users to address this vulnerability promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall dasnoo-socket
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, developers can avoid using the dasnoo-socket package and implement alternative libraries for socket communication, such as socket.io, which is widely used and trusted in the community.
Conclusion
The dasnoo-socket package has been identified to contain malicious code that poses significant security risks. Users are advised to remove the package and consider alternative solutions for socket communication to ensure the safety of their applications.
See every vulnerability recorded for dasnoo-socket →
FAQ
Dasnoo-socket is an npm package used for real-time socket communication in web applications.
The malicious code can lead to unauthorized access and potential data breaches in applications using the package.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Check your application using the Vulert playground at Vulert Scanner.
Currently, there is no patched version available. It is recommended to remove the package and use an alternative.
You should remove the dasnoo-socket package immediately and replace it with a secure alternative to mitigate any security risks.