Critical Malicious Code Vulnerability in fs-extra-core Package
Summary
MAL-2026-11027: Malicious code in fs-extra-core (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
fs-extra-core is a popular npm package that extends the functionality of the native Node.js 'fs' (file system) module, providing additional methods for file and directory manipulation. It is widely used in various Node.js applications for tasks such as copying files, removing directories, and ensuring file system operations are performed efficiently. However, the package has been found to contain malicious code that compromises the security of any system where it is installed.
Vulnerability Detail
The vulnerability stems from the presence of embedded malicious code within the fs-extra-core 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 origin of this vulnerability is linked to a malicious actor who has inserted harmful code into the package, making it a significant threat to users and their systems. The ramifications include potential data breaches and loss of control over the affected systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall fs-extra-core
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
There are no effective workarounds for this vulnerability other than removing the package and ensuring that all sensitive information is secured. It is advisable to monitor your systems for any unusual activity following the removal of the package.
Conclusion
The fs-extra-core package has been compromised with malicious code, posing a significant risk to any systems where it is installed. Immediate removal of the package and rotation of sensitive information is essential to mitigate the threat. Users should remain vigilant and utilize tools like Vulert to monitor for vulnerabilities in their applications.
See every vulnerability recorded for fs-extra-core →
FAQ
You should immediately remove the fs-extra-core package from your project and rotate any secrets or keys stored on the affected system.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without any signup.
Currently, there is no patch available for fs-extra-core due to the malicious nature of the code. The best course of action is to remove the package.
Failing to remove the package can lead to unauthorized access to your system, potential data breaches, and loss of sensitive information.
It is not recommended to reinstall fs-extra-core until a verified safe version is released. Always ensure that you are using trusted packages.