Critical Malicious Code Vulnerability in svelte-autocomplete-select Package
Summary
MAL-2025-191016: Malicious code in svelte-autocomplete-select (npm). Affects svelte-autocomplete-select versions 1.1.1. 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 svelte-autocomplete-select package is a popular npm library designed to provide autocomplete functionality for Svelte applications. It allows developers to easily implement dropdowns with search capabilities, enhancing user experience. However, this package has been found to contain malicious code, posing significant security risks to any application that utilizes it.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the svelte-autocomplete-select package. This code can compromise any computer that has the package installed, potentially allowing unauthorized access to sensitive information such as secrets and keys. The malicious nature of the code is classified under CWE-506, indicating that it embeds harmful functionalities that can lead to severe security breaches.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall svelte-autocomplete-select
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 workaround, you can temporarily disable the functionalities that rely on the svelte-autocomplete-select package until a secure alternative is implemented. Additionally, ensure that all secrets and keys stored on the affected computer are rotated immediately from a different, secure machine.
Conclusion
The discovery of malicious code within the svelte-autocomplete-select package poses a serious threat to applications using it. Immediate action is required to remove the package and secure any sensitive information. Utilizing tools like Vulert can help in monitoring for such vulnerabilities in the future.
See every vulnerability recorded for svelte-autocomplete-select →
FAQ
You should immediately remove the package from your project and rotate any sensitive information stored on the affected machine.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
Currently, there is no patched version available for the compromised svelte-autocomplete-select package. It is recommended to remove it entirely.
Failing to address this vulnerability can lead to unauthorized access to sensitive data, potential data breaches, and full control of the affected machine by malicious actors.
While many npm packages are safe, it is essential to regularly monitor and audit your dependencies for vulnerabilities using tools like Vulert.