Malicious Code Vulnerability in ref-selector Package
Summary
MAL-2026-1840: Malicious code in ref-selector (npm). Affects ref-selector versions 100.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 ref-selector package is a utility in the npm ecosystem that allows developers to manage and select references in their applications efficiently. It is commonly used in various projects for its simplicity and effectiveness. However, this package has been identified to contain malicious code, posing a significant risk to applications that utilize it.
Vulnerability Detail
The vulnerability in the ref-selector package stems from the inclusion of malicious code that can compromise the security of applications using this package. This code can lead to unauthorized access, data breaches, or other malicious activities. The issue was reported by ReversingLabs, and it affects version 100.0.0 of the package. The malicious code can execute harmful operations without the user's consent, making it critical for developers to address this vulnerability promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ref-selector
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 remove the ref-selector package from your project until a secure version is released. You can do this by running the command: npm uninstall ref-selector. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The ref-selector package has been identified with a serious vulnerability due to the presence of malicious code. Developers using this package should take immediate action to update or remove it to protect their applications from potential threats. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.
See every vulnerability recorded for ref-selector →
FAQ
The ref-selector package is an npm utility that helps developers manage and select references in their applications.
The malicious code can lead to unauthorized access and data breaches, compromising the security of your application.
You can use Vulert, which monitors open-source vulnerabilities in your software using just package-lock.json. Visit Vulert Scanner to check if your application is affected without any signup.
Yes, it is recommended to update the ref-selector package to the latest version to mitigate the vulnerability.
As a temporary measure, you can uninstall the ref-selector package and look for alternative solutions until a secure version is available.