Malicious Code Injection in hash-socket-slow-debug-interpret Package
Summary
MAL-2025-187283: Malicious code in hash-socket-slow-debug-interpret (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 hash-socket-slow-debug-interpret package is part of the npm ecosystem, which is widely used for JavaScript development. This package, like many others, is intended to facilitate certain functionalities within applications. However, it has been identified as part of a malicious campaign that aims to manipulate the npm registry and inflate developer reputation scores through the creation of derivative packages.
Vulnerability Detail
The vulnerability originates from a malicious campaign associated with the tea.xyz token reward system. The package contains scripts designed to automatically generate and publish derivative packages with randomized names, which can lead to the pollution of the npm registry. The malicious payload modifies the package.json file to remove private flags, alters version numbers, and continuously republishes variants, potentially compromising the integrity of applications that depend on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall hash-socket-slow-debug-interpret
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 avoid using the hash-socket-slow-debug-interpret package and look for alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your application for vulnerabilities using tools like Vulert, which can alert you to open-source vulnerabilities in real-time.
Conclusion
The hash-socket-slow-debug-interpret package has been identified as part of a malicious campaign that poses significant risks to applications relying on it. Immediate action is required to remove the package and monitor for any potential vulnerabilities. Utilizing tools like Vulert can enhance your security posture by providing real-time alerts for open-source vulnerabilities.
See every vulnerability recorded for hash-socket-slow-debug-interpret →
FAQ
It is an npm package used in JavaScript development, but it has been compromised and is part of a malicious campaign.
The vulnerability can lead to the pollution of the npm registry and compromise the integrity of your application by introducing malicious code.
You should uninstall the package immediately and monitor your application for any signs of compromise.
Yes, tools like Vulert can help monitor your application for open-source vulnerabilities in real-time.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.