Malicious Code Detected in diffdrive Package - Security Alert
Summary
MAL-2025-18447: Malicious code in diffdrive (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 diffdrive package is an npm library designed for simulating differential drive robots. It provides functionalities for controlling robot movement and simulating various driving scenarios. However, it has recently been flagged for containing malicious code, which poses a significant security risk to users and their applications.
Vulnerability Detail
The vulnerability in the diffdrive package originates from the inclusion of malicious code that can compromise the security of applications using this library. This code can lead to unauthorized access, data breaches, or other malicious activities. Users of the package are at risk of exploitation, especially if they do not take immediate action to mitigate the threat.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall diffdrive
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, users can remove the diffdrive package from their project until a secure version is released. This can be done by executing: 'npm uninstall diffdrive'. Alternatively, consider using a different package that offers similar functionality without the security risks.
Conclusion
The diffdrive package has been identified as containing malicious code, posing a serious threat to users. It is crucial to take immediate action by updating or removing the package to safeguard your applications. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.
See every vulnerability recorded for diffdrive →
FAQ
The diffdrive package is used for simulating differential drive robots, providing functionalities for controlling their movement and simulating driving scenarios.
You can check if your application is affected by using Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to use the Vulert playground without any signup.
If you cannot update the package, consider removing it from your project as a temporary measure or look for alternative packages that provide similar functionality.
Using a package with malicious code can lead to unauthorized access to your application, data breaches, and potential exploitation of your system.
More information about this vulnerability can be found in the vulnerability report on GitHub at https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/diffdrive/MAL-2025-18447.json.