Critical Malicious Code Vulnerability in @lessondesk/babel-preset Package
Summary
MAL-2025-191027: Malicious code in @lessondesk/babel-preset (npm). Affects @lessondesk/babel-preset versions 1.0.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 @lessondesk/babel-preset package is a tool used in JavaScript development, specifically for configuring Babel, a popular JavaScript compiler. This package allows developers to easily set up their Babel environment with predefined settings. However, it has been identified as containing malicious code, which poses serious security risks to any system where it is installed.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the @lessondesk/babel-preset 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 has been confirmed by security researchers, and it is classified under CWE-506, indicating that the product contains code that appears to be malicious in nature.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @lessondesk/babel-preset
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, if you cannot remove the package immediately, ensure that your system is isolated from sensitive data and monitor for any unusual activity. However, this is not a permanent solution and should only be a temporary measure.
Conclusion
The @lessondesk/babel-preset package has been identified as containing malicious code that can compromise systems. Immediate action is required to remove the package and secure any sensitive information. Regular monitoring and vulnerability checks using tools like Vulert are recommended to prevent future incidents.
See every vulnerability recorded for @lessondesk/babel-preset →
FAQ
It is a JavaScript development tool used for configuring Babel, allowing developers to set up their Babel environment easily.
If you have the @lessondesk/babel-preset package installed, your system may be compromised. Use tools like Vulert to check for vulnerabilities.
Immediately remove the package, rotate all sensitive keys and secrets, and monitor your system for any unauthorized access.
No patched version is available; the best course of action is to remove the package entirely.
Vulert monitors and alerts for open-source vulnerabilities in your software using just package-lock.json, providing real-time insights without requiring code access.