Malicious code in routing-controls (npm)
The npm package 'routing-controls' version 1.0.1 is a malicious clone of the popular 'routing-controllers' package. It contains a code path that reloads a stub file named 'lib.min.js' on every POST request, which currently only logs a message but structurally allows future versions to execute arbitrary code on POST requests. There is no evidence of active exploitation or credential theft in the current version, but the package poses a latent risk if updated maliciously. Removal is recommended due to the potential for full system compromise.
AI Analysis
Technical Summary
The 'routing-controls' package (version 1.0.1) is a one-edit variant of the legitimate 'routing-controllers' npm package, designed to appear identical. It includes a suspicious mechanism in the 'executeAction' method that reloads a 'lib.min.js' file on every POST request, bypassing the require cache. Currently, this file only logs a timestamped message, but the structure enables a hot-swappable backdoor that could run arbitrary code in future versions. Although no active malicious behavior such as exfiltration or credential access is present now, the package is considered malicious due to its potential for future exploitation. The package should be treated as fully compromising any system where it is installed.
Potential Impact
If exploited in a future version, the package could execute arbitrary code on every POST request within applications using it, potentially leading to full system compromise. Currently, the version 1.0.1 does not perform harmful actions beyond logging, but the presence of a hot-swappable code path means the risk is latent and could be activated by a malicious update. Systems with this package installed should be considered compromised due to the possibility of future malicious payloads. Secrets and keys on affected systems should be rotated as a precaution.
Mitigation Recommendations
No official patch or fix is currently available for this package. The recommended mitigation is to immediately remove the 'routing-controls' package version 1.0.1 from all systems. Rotate all secrets and keys stored on affected computers from a separate, trusted environment. Monitor for any suspicious activity and avoid using this package in any environment. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates or official remediation guidance.
Malicious code in routing-controls (npm)
Description
The npm package 'routing-controls' version 1.0.1 is a malicious clone of the popular 'routing-controllers' package. It contains a code path that reloads a stub file named 'lib.min.js' on every POST request, which currently only logs a message but structurally allows future versions to execute arbitrary code on POST requests. There is no evidence of active exploitation or credential theft in the current version, but the package poses a latent risk if updated maliciously. Removal is recommended due to the potential for full system 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 'routing-controls' package (version 1.0.1) is a one-edit variant of the legitimate 'routing-controllers' npm package, designed to appear identical. It includes a suspicious mechanism in the 'executeAction' method that reloads a 'lib.min.js' file on every POST request, bypassing the require cache. Currently, this file only logs a timestamped message, but the structure enables a hot-swappable backdoor that could run arbitrary code in future versions. Although no active malicious behavior such as exfiltration or credential access is present now, the package is considered malicious due to its potential for future exploitation. The package should be treated as fully compromising any system where it is installed.
Potential Impact
If exploited in a future version, the package could execute arbitrary code on every POST request within applications using it, potentially leading to full system compromise. Currently, the version 1.0.1 does not perform harmful actions beyond logging, but the presence of a hot-swappable code path means the risk is latent and could be activated by a malicious update. Systems with this package installed should be considered compromised due to the possibility of future malicious payloads. Secrets and keys on affected systems should be rotated as a precaution.
Mitigation Recommendations
No official patch or fix is currently available for this package. The recommended mitigation is to immediately remove the 'routing-controls' package version 1.0.1 from all systems. Rotate all secrets and keys stored on affected computers from a separate, trusted environment. Monitor for any suspicious activity and avoid using this package in any environment. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates or official remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5635
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-jmhh-mvpj-27qq"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4f6c3968715ace431588fd
Added to database: 07/09/2026, 09:39:05 UTC
Last enriched: 07/09/2026, 09:53:16 UTC
Last updated: 07/26/2026, 15:34:44 UTC
Views: 7
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.