Malicious Code Detected in babel-preset-tedium: A Critical Security Alert
Summary
MAL-2025-15307: Malicious code in babel-preset-tedium (npm). Affected versions are not published. 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 package babel-preset-tedium is an npm package designed to provide a preset configuration for Babel, a popular JavaScript compiler. Babel allows developers to use the latest JavaScript features while ensuring compatibility with older environments. However, this package has been identified as containing malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the babel-preset-tedium package. This code can potentially compromise the security of applications that depend on it, leading to unauthorized access, data breaches, or other harmful actions. The malicious nature of the code was confirmed by security researchers, highlighting the importance of scrutinizing third-party packages before integration.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall babel-preset-tedium
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 avoid using babel-preset-tedium and instead utilize other Babel presets that do not contain malicious code. Review your project's dependencies and consider alternatives such as babel-preset-env or babel-preset-react, depending on your project's requirements.
Conclusion
The discovery of malicious code in the babel-preset-tedium package poses a significant threat to applications using it. It is crucial for developers to take immediate action by removing the package and considering secure alternatives. Regular monitoring of dependencies using tools like Vulert can help maintain the security of your projects.
See every vulnerability recorded for babel-preset-tedium →
FAQ
babel-preset-tedium is an npm package that provides a preset configuration for Babel, allowing developers to use modern JavaScript features.
The malicious code was identified by security researchers from Amazon Inspector, who reported it as part of their findings on vulnerable packages.
Using babel-preset-tedium can expose your application to security vulnerabilities, including unauthorized access and potential data breaches.
Currently, there is no patched version of babel-preset-tedium available. It is advised to uninstall the package and seek alternatives.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software. By analyzing your package-lock.json file, Vulert can help you identify if your application is affected by this vulnerability.