Malicious code in @depup/memfs (npm)
The @depup/memfs npm package is a malicious republish of the legitimate memfs package. It replaces the original source code with requires to attacker-controlled packages under the @jsonjoy.com namespace, causing installation or import to execute malicious code from these dependencies. This repackaging effectively creates a dependency-chain dropper that runs attacker-published code without lifecycle hooks. The affected version is exactly 4.67.0-depup.0.
AI Analysis
Technical Summary
The @depup/memfs package is an automated republish of the memfs library that strips the original source code and replaces it with require calls to nine attacker-controlled packages (@jsonjoy.com/fs-*), all pinned to version 4.67.0, which does not correspond to legitimate releases. This republished package also updates other dependencies to versions far beyond their real published ranges, steering the resolver to attacker-published versions. Installing or importing @depup/memfs results in executing arbitrary code from these malicious dependencies, effectively acting as a dependency-chain dropper without requiring lifecycle hooks.
Potential Impact
Users who install or import the @depup/memfs package version 4.67.0-depup.0 will unknowingly execute malicious code from attacker-controlled dependencies. This can lead to arbitrary code execution within the context of the affected environment, potentially compromising system integrity and security.
Mitigation Recommendations
Avoid using the @depup/memfs package version 4.67.0-depup.0. Instead, use the official memfs package from its legitimate source. Since no official patch or fix is indicated, users should remove this malicious package and audit their dependencies to ensure no other republished or malicious packages are present.
Malicious code in @depup/memfs (npm)
Description
The @depup/memfs npm package is a malicious republish of the legitimate memfs package. It replaces the original source code with requires to attacker-controlled packages under the @jsonjoy.com namespace, causing installation or import to execute malicious code from these dependencies. This repackaging effectively creates a dependency-chain dropper that runs attacker-published code without lifecycle hooks. The affected version is exactly 4.67.0-depup.0.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The @depup/memfs package is an automated republish of the memfs library that strips the original source code and replaces it with require calls to nine attacker-controlled packages (@jsonjoy.com/fs-*), all pinned to version 4.67.0, which does not correspond to legitimate releases. This republished package also updates other dependencies to versions far beyond their real published ranges, steering the resolver to attacker-published versions. Installing or importing @depup/memfs results in executing arbitrary code from these malicious dependencies, effectively acting as a dependency-chain dropper without requiring lifecycle hooks.
Potential Impact
Users who install or import the @depup/memfs package version 4.67.0-depup.0 will unknowingly execute malicious code from attacker-controlled dependencies. This can lead to arbitrary code execution within the context of the affected environment, potentially compromising system integrity and security.
Mitigation Recommendations
Avoid using the @depup/memfs package version 4.67.0-depup.0. Instead, use the official memfs package from its legitimate source. Since no official patch or fix is indicated, users should remove this malicious package and audit their dependencies to ensure no other republished or malicious packages are present.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-13624
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a774329bf8831d539b45ddc
Added to database: 08/08/2026, 14:54:33 UTC
Last enriched: 08/08/2026, 15:37:24 UTC
Last updated: 08/08/2026, 20:00:42 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.