Critical Malicious Code Vulnerability in stream-xor-chain Package
Summary
MAL-2025-191543: Malicious code in stream-xor-chain (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 stream-xor-chain package is an npm library designed for stream manipulation using XOR operations. It is typically used in applications requiring secure data transmission. However, this package has been compromised, leading to severe security risks for any system utilizing it. The malicious code embedded within can grant unauthorized access to sensitive information stored on the affected machine.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code in the stream-xor-chain package. This code can fully compromise any computer that has the package installed, allowing attackers to access secrets and keys stored on the machine. The ramifications are severe, as it can lead to data breaches and unauthorized control over the system. Users are advised to treat any system with this package as compromised and to take immediate action.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall stream-xor-chain
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
There are no effective workarounds for this vulnerability other than removing the package entirely. Ensure that all secrets and keys stored on the affected machine are rotated immediately from a secure system.
Conclusion
The stream-xor-chain package has been identified as containing malicious code that compromises the security of any system using it. Immediate action is required to remove the package and secure sensitive information. Users are encouraged to utilize tools like Vulert to monitor for vulnerabilities in their applications.
See every vulnerability recorded for stream-xor-chain →
FAQ
You should immediately uninstall the package using 'npm uninstall stream-xor-chain' and rotate any sensitive information stored on the affected machine.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Failing to remove the package can lead to unauthorized access to sensitive data and complete control of your system by malicious actors.
Recovery involves removing the malicious package, rotating all secrets and keys, and potentially reinstalling your operating system to ensure no remnants of the malicious code remain.
Yes, you can report vulnerabilities to the maintainers of the package or through platforms like GitHub to help others avoid similar issues.