Malicious Code Detected in deserialize-string-scale-enum-encode Package
Summary
MAL-2025-18308: Malicious code in deserialize-string-scale-enum-encode (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 'deserialize-string-scale-enum-encode' package is an npm library designed to facilitate the deserialization of string inputs into enumerated types. It is commonly used in applications that require dynamic input handling and type validation. However, this package has been found to contain malicious code, posing a significant risk to applications that rely on it.
Vulnerability Detail
The vulnerability in the 'deserialize-string-scale-enum-encode' package stems from the inclusion of malicious code that can execute harmful actions when the package is used. This issue was introduced in version 0 and affects all subsequent versions. The ramifications of this vulnerability include potential data breaches, unauthorized access to sensitive information, and the compromise of application integrity.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall deserialize-string-scale-enum-encode
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, consider replacing the 'deserialize-string-scale-enum-encode' package with an alternative library that provides similar functionality without the associated risks. Always validate and sanitize inputs to mitigate potential threats.
Conclusion
The 'deserialize-string-scale-enum-encode' package has been identified as containing malicious code, posing serious risks to applications that utilize it. Users are advised to remove the package and monitor for updates or alternatives to maintain application security.
See every vulnerability recorded for deserialize-string-scale-enum-encode →
FAQ
The malicious code can execute harmful actions, potentially leading to data breaches and unauthorized access.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Check your application using the Vulert playground at Vulert Scanner.
Currently, there is no patched version available for the 'deserialize-string-scale-enum-encode' package. It is advisable to remove the package until a fix is released.
As a temporary measure, consider using an alternative library that offers similar functionality without the security risks.
Regularly monitor your dependencies for vulnerabilities, keep your packages updated, and utilize tools like Vulert for real-time alerts.