Malicious code in routecraft (npm)
The npm package 'routecraft' versions 4.2.0 and 5.0.0 is a malicious package that repackages Express.js source code without attribution and includes a malicious install script. On Windows systems with Node.js version 18 or higher, it conditionally loads a suspicious dependency 'procwire' which executes malicious payloads during installation. Systems with this package installed should be considered fully compromised, and all secrets and keys must be rotated. Removal of the package alone may not eliminate the compromise.
AI Analysis
Technical Summary
The 'routecraft' npm package versions 4.2.0 and 5.0.0 masquerades as a lightweight HTTP routing framework but actually ships verbatim Express.js source code without attribution. It includes a 'preinstall' script that conditionally loads the 'procwire' dependency on Windows platforms running Node.js 18 or later. This indirect loading of an unpinned transitive dependency is a known technique to hide malicious payloads. The package's installation can lead to full system compromise, as indicated by the vendor advisory stating that any system with this package installed should be considered fully compromised.
Potential Impact
Installation of the affected 'routecraft' package versions can result in full system compromise on Windows systems with Node.js 18 or higher. Attackers may gain full control over the compromised system, potentially exposing all stored secrets and keys. The malicious payload is executed during package installation, and simply removing the package does not guarantee removal of all malicious artifacts.
Mitigation Recommendations
Immediate removal of the 'routecraft' package versions 4.2.0 and 5.0.0 is recommended. All secrets, keys, and credentials stored on the compromised system should be rotated from a separate, trusted system. Due to the potential full compromise, a full system investigation and remediation may be necessary. No official patch or fix is available; the package itself is malicious and should be avoided entirely.
Malicious code in routecraft (npm)
Description
The npm package 'routecraft' versions 4.2.0 and 5.0.0 is a malicious package that repackages Express.js source code without attribution and includes a malicious install script. On Windows systems with Node.js version 18 or higher, it conditionally loads a suspicious dependency 'procwire' which executes malicious payloads during installation. Systems with this package installed should be considered fully compromised, and all secrets and keys must be rotated. Removal of the package alone may not eliminate the compromise.
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 'routecraft' npm package versions 4.2.0 and 5.0.0 masquerades as a lightweight HTTP routing framework but actually ships verbatim Express.js source code without attribution. It includes a 'preinstall' script that conditionally loads the 'procwire' dependency on Windows platforms running Node.js 18 or later. This indirect loading of an unpinned transitive dependency is a known technique to hide malicious payloads. The package's installation can lead to full system compromise, as indicated by the vendor advisory stating that any system with this package installed should be considered fully compromised.
Potential Impact
Installation of the affected 'routecraft' package versions can result in full system compromise on Windows systems with Node.js 18 or higher. Attackers may gain full control over the compromised system, potentially exposing all stored secrets and keys. The malicious payload is executed during package installation, and simply removing the package does not guarantee removal of all malicious artifacts.
Mitigation Recommendations
Immediate removal of the 'routecraft' package versions 4.2.0 and 5.0.0 is recommended. All secrets, keys, and credentials stored on the compromised system should be rotated from a separate, trusted system. Due to the potential full compromise, a full system investigation and remediation may be necessary. No official patch or fix is available; the package itself is malicious and should be avoided entirely.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6229
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-mw8m-x3ph-h3x7"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a42ed2327e9c79719933b14
Added to database: 06/29/2026, 22:09:39 UTC
Last enriched: 06/29/2026, 22:18:12 UTC
Last updated: 07/18/2026, 17:27:21 UTC
Views: 5
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.