Malicious Code Detected in deserialize-string-scale-enum-encode Package

Summary

14/08/2025
CRITICAL
No i
Critical
Not published

MAL-2025-18308: Malicious code in deserialize-string-scale-enum-encode (npm). Affected versions are not published. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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 →

Share this vulnerability

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.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback