Malicious Code Detected in vl-ui-code-preview Package - Version 10.1.1
Summary
MAL-2026-994: Malicious code in vl-ui-code-preview (npm). Affects vl-ui-code-preview versions 10.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 vl-ui-code-preview package is an npm library designed to facilitate the previewing of code snippets in user interfaces. It is commonly used in web development projects to enhance the user experience by allowing developers to showcase code in a visually appealing manner. However, version 10.1.1 of this package has been flagged for containing malicious code, which poses significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability in the vl-ui-code-preview package arises from the execution of commands that are associated with malicious behavior. This can lead to unauthorized access, data breaches, or the execution of harmful scripts within the user's environment. The malicious code was identified by the OpenSSF Package Analysis project, which monitors npm packages for security threats. The specific commands executed by the package can compromise the integrity of the application and potentially affect end-users.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall vl-ui-code-preview
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 vl-ui-code-preview package from your project until a safe version is confirmed. You can do this by running the following command:
npm uninstall vl-ui-code-preview
This will prevent any potential malicious activity associated with the package while you seek alternatives or wait for a patch.
Conclusion
The vl-ui-code-preview package version 10.1.1 has been identified as malicious, posing significant security risks to applications that utilize it. Users are advised to update to a patched version or remove the package until a safe version is confirmed. Monitoring tools like Vulert can assist in identifying vulnerabilities in your projects.
See every vulnerability recorded for vl-ui-code-preview →
FAQ
The vl-ui-code-preview package is an npm library used for displaying code snippets in web applications, enhancing the user interface.
The malicious code was identified by the OpenSSF Package Analysis project, which analyzes npm packages for security vulnerabilities.
Using the affected version (10.1.1) can lead to unauthorized access, data breaches, and execution of harmful scripts, compromising application security.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just the package-lock.json file. You can check if your application is affected by visiting the Vulert playground.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without requiring any signup.