Malicious code in fs-extra-core (npm)
MAL-2026-11027 · GHSA-f246-8cf4-26v7
Published · Modified
Dependency scanning
Check whether fs-extra-core is in your codebase
Corgea flags malicious and compromised dependencies with reachability analysis, so you fix the packages that actually run in your application instead of working through the whole lockfile.
Description
__
Source: amazon-inspector (397f5c6f4eb2cf734d5ee1afc9908bdd0162a91a2fc6ad6d7d51a5cfd22fdc41)
Package impersonates fs-extra by copying its description, homepage (github.com/jprichardson/node-fs-extra), and repository metadata verbatim. Its exported outputFile() function ignores the documented (path, data) arguments and instead fetches a Windows executable from raw.githubusercontent.com/jason-code-super/axios/main/lib/env/axios.exe — a personal repository unrelated to the fs-extra publisher — and writes the binary to %LOCALAPPDATA%\Temp\msedgewebview2.exe, a filename impersonating Microsoft Edge WebView. Any consumer calling the fs-extra-style outputFile API stages an attacker-controlled binary on disk under a Microsoft-lookalike name, sourced from a mutable third-party GitHub branch.
Source: ghsa-malware (402ae65ced8ae836bc92edf3622ea0d96d25d99d088d289481cd4332ddf1e38d)
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
References
Ready to move
Start Securing
Free, no credit card | First findings in minutes