Malicious Code Detected in babel-plugin-transform-raptor-class: A Critical Vulnerability
Summary
MAL-2025-15298: Malicious code in babel-plugin-transform-raptor-class (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-raptor-class is an npm package designed to facilitate the transformation of classes in JavaScript, enhancing the development experience by allowing developers to utilize advanced class features. However, this package has been found to contain malicious code, posing significant security risks to applications that rely on it.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the babel-plugin-transform-raptor-class 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 critical 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-raptor-class
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 using alternative packages that provide similar functionality without the associated risks. Always ensure to review the security status of any package before integrating it into your project.
Conclusion
The discovery of malicious code in the babel-plugin-transform-raptor-class package highlights the importance of maintaining vigilance in software dependencies. Users are urged to take immediate action to remove the affected package and consider alternatives to safeguard their applications.
See every vulnerability recorded for babel-plugin-transform-raptor-class →
FAQ
The malicious code can perform unauthorized actions within your application, potentially leading to data theft or system compromise.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without needing to sign up.
If immediate removal is not feasible, consider isolating the affected functionality and monitoring your application closely for any suspicious activity.
While specific exploits have not been publicly disclosed, the presence of malicious code inherently poses a risk of exploitation.
Regularly check for updates to your dependencies and utilize tools like Vulert to receive real-time alerts on vulnerabilities.