Critical Malicious Code Vulnerability in transform-inline-consecutive-adds Package
Summary
MAL-2026-1568: Malicious code in transform-inline-consecutive-adds (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 transform-inline-consecutive-adds package is an npm module designed to optimize JavaScript code by transforming consecutive addition operations into a more efficient format. While it serves a useful purpose in code optimization, it has been found to contain malicious code that compromises the security of any system where it is installed. This vulnerability poses a significant risk to developers and organizations relying on this package for their projects.
Vulnerability Detail
The vulnerability originates from the presence of embedded malicious code within the transform-inline-consecutive-adds package. This code can fully compromise any computer that has the package installed, allowing unauthorized access to sensitive information such as secrets and keys. The malicious nature of the code means that simply removing the package may not eliminate all traces of the compromise, as the attacker may have already gained control over the system.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall transform-inline-consecutive-adds
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 workaround, consider using alternative packages that provide similar functionality without the associated risks. Always ensure to review the security status of any package before installation.
Conclusion
The transform-inline-consecutive-adds package has been identified as containing malicious code that poses a severe risk to any system where it is installed. Immediate action is required to remove the package and secure any sensitive information. Utilizing tools like Vulert can help monitor and manage vulnerabilities in your software.
See every vulnerability recorded for transform-inline-consecutive-adds →
FAQ
You should immediately remove the package and rotate any secrets or keys stored on the affected system.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
Currently, there is no patched version available. The best course of action is to remove the package entirely.
Failing to address this vulnerability can lead to unauthorized access to sensitive information and potential control over your system by malicious actors.
While many npm packages are safe, it is essential to review their security status and maintain vigilance when selecting packages for your projects.