Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in routecraft (npm)

0
Critical
Published: 06/19/2026 (06/19/2026, 15:55:54 UTC)
Source: GCVE Database
Product: routecraft

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

npmghsa
routecraft
Affected versions
=5.0.0=4.2.0

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

AILast updated: 06/29/2026, 22:18:12 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses