Critical Malicious Code Vulnerability in svelte-intl Package
Summary
MAL-2025-6220: Malicious code in svelte-intl (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 svelte-intl package is a library designed for internationalization in Svelte applications, allowing developers to easily manage translations and locale-specific formatting. However, this package has been identified to contain embedded malicious code, posing significant security risks to any application utilizing it.
Vulnerability Detail
The vulnerability stems from the inclusion of malicious code within the svelte-intl package. This code can compromise any system where the package is installed, potentially allowing unauthorized access to sensitive information such as secrets and keys. The malicious nature of the code is confirmed by its classification under CWE-506, indicating that it appears to be intentionally harmful. Users should consider any system with this package fully compromised.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall svelte-intl
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
Currently, the best workaround is to uninstall the svelte-intl package entirely. You can do this by running the following command in your terminal: npm uninstall svelte-intl. Additionally, monitor your application for any unusual activity that may indicate further compromise.
Conclusion
The svelte-intl package contains malicious code that poses a serious security threat to any application using it. Immediate action is required to remove the package and secure any compromised information. Users are encouraged to monitor their applications and utilize tools like Vulert for ongoing vulnerability management.
See every vulnerability recorded for svelte-intl →
FAQ
svelte-intl is a library used for internationalization in Svelte applications, facilitating the management of translations and locale-specific formatting.
You can check if your application is affected by using Vulert, which monitors open-source vulnerabilities in your software. Visit Vulert Scanner to analyze your package-lock.json without any signup.
If you have installed svelte-intl, you should uninstall it immediately and rotate any sensitive information that may have been compromised.
As of now, there is no patched version available. Users are advised to uninstall the package until further notice.
Failing to address this vulnerability may result in unauthorized access to your system, leading to potential data breaches and loss of sensitive information.