Critical Malicious Code Vulnerability in eh-fiddle Package
Summary
MAL-2025-19261: Malicious code in eh-fiddle (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 eh-fiddle package is an npm library designed for creating interactive fiddle-like environments for JavaScript code snippets. It allows developers to quickly prototype and share code examples. However, it has been identified to contain malicious code, posing significant security risks to users and their applications.
Vulnerability Detail
The vulnerability in the eh-fiddle package originates from the inclusion of malicious code that can compromise the security of applications utilizing this package. This malicious code can lead to unauthorized access, data breaches, and potential exploitation of the affected systems. The issue affects all versions starting from 0, 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 eh-fiddle
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, developers can remove the eh-fiddle package from their project until a secure version is released. This can be done by executing the following command: npm uninstall eh-fiddle. Consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The discovery of malicious code in the eh-fiddle package poses a serious threat to users and their applications. It is crucial for developers to take immediate action by updating or removing the package and to utilize tools like Vulert for ongoing monitoring of vulnerabilities in their software.
See every vulnerability recorded for eh-fiddle →
FAQ
The malicious code is designed to exploit vulnerabilities in applications that use the eh-fiddle package, potentially leading to unauthorized access and data breaches.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. By simply analyzing your package-lock.json file, Vulert can provide real-time alerts. You can also check your application using the Vulert playground at Vulert Scanner.
As of now, there is no patched version available. Users are advised to monitor the package repository for updates and apply them as soon as they are released.
If removal is not an option, consider isolating the package's usage and implementing additional security measures to mitigate risks until a patch is available.
Vulert uses your package-lock.json file to monitor and alert you in real-time for open-source vulnerabilities, ensuring you stay informed about potential risks.