Malicious Code Detected in babel-plugin-transform-decorator-props: A Critical Security Alert
Summary
MAL-2025-15295: Malicious code in babel-plugin-transform-decorator-props (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 babel-plugin-transform-decorator-props is an npm package designed to facilitate the transformation of decorator properties in JavaScript applications. It is widely used in projects that leverage decorators for enhancing code readability and functionality. However, this package has been identified to contain malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the babel-plugin-transform-decorator-props package. This code can potentially compromise the integrity of applications using the package, leading to unauthorized access, data breaches, or other malicious activities. The issue was introduced in version 0 and affects all subsequent versions, making it imperative for users to take immediate action.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall babel-plugin-transform-decorator-props
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, consider removing the babel-plugin-transform-decorator-props package from your project until a secure version is released. You can do this by executing the command: 'npm uninstall babel-plugin-transform-decorator-props'. This will help mitigate the risk while you await a fix.
Conclusion
The discovery of malicious code in the babel-plugin-transform-decorator-props package poses a serious threat to applications using it. Immediate action is required to update or remove the package to safeguard your project from potential vulnerabilities. Utilize tools like Vulert for ongoing monitoring and alerts regarding open-source vulnerabilities.
See every vulnerability recorded for babel-plugin-transform-decorator-props →
FAQ
The malicious code can potentially allow unauthorized access to sensitive data or enable other harmful actions within your application.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. By simply analyzing your package-lock.json file, Vulert can inform you if your application is at risk.
Yes, you can utilize the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without any signup required.
If an immediate update is not feasible, consider removing the package as a temporary measure to protect your application from potential threats.
Detailed information about the vulnerability can be found on the GitHub repository for malicious packages, specifically at the link provided in the vulnerability details.