MAL-2026-10218: Malicious code in pure-folder-three (npm)
The pure-folder-three npm package versions 0.5.0, 0.6.0, 0.7.0, 0.7.1, and 0.7.3 contain malicious code that executes attacker-controlled shell commands both during installation and when the package is imported. The malicious code fetches a payload from a remote server and executes it, giving the attacker arbitrary command execution on the host. The payload is obfuscated and includes a check to avoid execution on machines with usernames containing 'justin'. This results in a full compromise of any system running or installing the affected package versions.
AI Analysis
Technical Summary
The pure-folder-three npm package in versions 0.5.0 through 0.7.3 includes a postinstall script and import-time code that decode an obfuscated URL and dynamically require the https module. It makes an HTTPS request to a remote server and executes the content of the response header 'm' via child_process.execSync, enabling remote arbitrary command execution. The malicious code is gated by a username check to exclude the author's own machine. Because the malicious code runs both on install and on import, ignoring npm install scripts does not prevent exploitation. This results in a fully compromised system where all stored secrets and keys are at risk.
Potential Impact
Any system that installs or imports the affected pure-folder-three package versions is subject to arbitrary remote code execution by an attacker-controlled server. This leads to full system compromise, including potential theft or destruction of secrets, keys, and other sensitive data. The attacker gains complete control over the compromised host.
Mitigation Recommendations
No official patch or remediation is currently available. Users should immediately remove all affected versions of the pure-folder-three package (0.5.0, 0.6.0, 0.7.0, 0.7.1, 0.7.3) from their systems. Because the package grants full control to an external attacker, all secrets and keys stored on the compromised systems should be rotated from a separate, trusted environment. Monitor for any signs of compromise and consider rebuilding affected systems to ensure removal of all malicious artifacts.
MAL-2026-10218: Malicious code in pure-folder-three (npm)
Description
The pure-folder-three npm package versions 0.5.0, 0.6.0, 0.7.0, 0.7.1, and 0.7.3 contain malicious code that executes attacker-controlled shell commands both during installation and when the package is imported. The malicious code fetches a payload from a remote server and executes it, giving the attacker arbitrary command execution on the host. The payload is obfuscated and includes a check to avoid execution on machines with usernames containing 'justin'. This results in a full compromise of any system running or installing the affected package versions.
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 pure-folder-three npm package in versions 0.5.0 through 0.7.3 includes a postinstall script and import-time code that decode an obfuscated URL and dynamically require the https module. It makes an HTTPS request to a remote server and executes the content of the response header 'm' via child_process.execSync, enabling remote arbitrary command execution. The malicious code is gated by a username check to exclude the author's own machine. Because the malicious code runs both on install and on import, ignoring npm install scripts does not prevent exploitation. This results in a fully compromised system where all stored secrets and keys are at risk.
Potential Impact
Any system that installs or imports the affected pure-folder-three package versions is subject to arbitrary remote code execution by an attacker-controlled server. This leads to full system compromise, including potential theft or destruction of secrets, keys, and other sensitive data. The attacker gains complete control over the compromised host.
Mitigation Recommendations
No official patch or remediation is currently available. Users should immediately remove all affected versions of the pure-folder-three package (0.5.0, 0.6.0, 0.7.0, 0.7.1, 0.7.3) from their systems. Because the package grants full control to an external attacker, all secrets and keys stored on the compromised systems should be rotated from a separate, trusted environment. Monitor for any signs of compromise and consider rebuilding affected systems to ensure removal of all malicious artifacts.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10218
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-9w58-3cgj-jw7v"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a54adf568715ace438f743e
Added to database: 07/13/2026, 09:20:53 UTC
Last enriched: 07/13/2026, 09:52:35 UTC
Last updated: 07/14/2026, 03:35:24 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.