Malicious Code Detected in babel-plugin-transform-raptor-template: A Critical Security Alert
Summary
MAL-2025-15300: Malicious code in babel-plugin-transform-raptor-template (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-template is an npm package designed to facilitate the transformation of Raptor templates in JavaScript applications. It is commonly used in web development to enhance the rendering of dynamic content. However, this package has been found to contain malicious code, posing a significant security risk to applications that utilize it.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the babel-plugin-transform-raptor-template package. This code can potentially compromise the security of applications by allowing unauthorized access or manipulation of data. The ramifications of this vulnerability can lead to data breaches, loss of sensitive information, and overall degradation of application integrity.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall babel-plugin-transform-raptor-template
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 an alternative package that provides similar functionality without the associated risks. Additionally, you can monitor your package dependencies using tools like Vulert, which can alert you to vulnerabilities in real-time without requiring access to your code or installation.
Conclusion
The discovery of malicious code in the babel-plugin-transform-raptor-template package underscores the importance of regularly monitoring and updating dependencies in software projects. By following the recommended steps to fix the vulnerability and utilizing tools like Vulert, developers can enhance the security of their applications.
See every vulnerability recorded for babel-plugin-transform-raptor-template →
FAQ
It is an npm package used for transforming Raptor templates in JavaScript applications.
The package was found to contain code that could compromise application security, allowing unauthorized access or data manipulation.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.
If immediate updates are not possible, consider using alternative packages or implementing strict security measures to mitigate risks.
Vulert uses just package-lock.json to monitor and alert in real-time for open-source vulnerabilities in your software, ensuring you stay informed about potential risks.