Malicious Code Detected in array-byte-code-reject-promise Package
Summary
MAL-2025-14859: Malicious code in array-byte-code-reject-promise (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 array-byte-code-reject-promise package is an npm library designed to facilitate the handling of byte code rejection promises in JavaScript applications. It is often utilized in projects that require asynchronous operations and promise management. However, this package has been identified to contain malicious code, posing a significant risk to applications that depend on it.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the array-byte-code-reject-promise package. This code can potentially compromise the security of applications using the package, leading 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 take immediate action.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall array-byte-code-reject-promise
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 array-byte-code-reject-promise package altogether and implement your own promise handling logic or use other trusted libraries that provide similar functionality.
Conclusion
The discovery of malicious code in the array-byte-code-reject-promise package poses a serious threat to applications that utilize it. Immediate action is required to uninstall the package and explore safer alternatives. Utilizing tools like Vulert can help in monitoring for such vulnerabilities in the future.
See every vulnerability recorded for array-byte-code-reject-promise →
FAQ
The malicious code can perform unauthorized actions within your application, potentially leading to data theft or system compromise.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. By checking your package-lock.json file, you can determine if your application is affected. Visit Vulert Scanner for more details.
No, there is currently no patched version available for the array-byte-code-reject-promise package. It is advised to uninstall the package instead.
If you have used the package in production, it is crucial to uninstall it immediately and review your application for any potential security breaches.
Yes, consider using other well-reviewed npm packages that provide similar promise handling functionalities without the associated risks.