Malicious Code Injection in @babell/core: A Critical Security Risk

@babell/core Updated 05 Oct 2026

Summary

04/10/2026
CRITICAL
No i
Critical
Not published

MAL-2026-17497: Malicious code in @babell/core (npm). Affects @babell/core versions 8.0.6. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The package @babell/core is a malicious npm package that impersonates the legitimate Babel project. Babel is a widely used JavaScript compiler that allows developers to use next-generation JavaScript features. The malicious package mimics the real package's name and attributes, making it easy for unsuspecting users to install it, thinking they are using a trusted tool.

Vulnerability Detail

The vulnerability originates from a preinstall lifecycle script defined in the package's package.json file. This script executes a command that downloads a JavaScript file from a third-party host (gitflic.ru) and pipes it directly into Node for execution. This poses a significant security risk as the downloaded code is unverified and executed with the privileges of the installing user, potentially leading to unauthorized access or system compromise.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall @babell/core

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, avoid using the @babell/core package and ensure that your project dependencies are sourced from trusted repositories. Regularly audit your dependencies for any malicious packages.

Conclusion

The @babell/core package poses a significant security risk due to its malicious code execution capabilities. Users must take immediate action to remove this package and ensure they are using the legitimate Babel package. Regular monitoring of dependencies using tools like Vulert can help prevent future vulnerabilities.

See every vulnerability recorded for @babell/core →

Share this vulnerability

FAQ

Using @babell/core can lead to the execution of malicious code on your system, potentially compromising your data and security.

You can check your package.json and package-lock.json files for any references to @babell/core. You can also use tools like Vulert to monitor your dependencies.

Immediately uninstall the package using npm uninstall @babell/core and replace it with the legitimate @babel/core package.

Vulert monitors your package-lock.json file to alert you in real-time about any open-source vulnerabilities in your software without requiring access to your code.

Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall @babell/core

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