Critical Malicious Code Vulnerability in @lessondesk/babel-preset Package

@lessondesk/babel-preset Updated 25 Nov 2025

Summary

24/11/2025
CRITICAL
No i
Critical
Not published

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 ↓

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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

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 →

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