Command Injection Affecting 9router package, versions >=0.4.59 <0.5.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.72% (50th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-9ROUTER-17987657
  • published16 Jul 2026
  • disclosed15 Jul 2026
  • creditUnknown

Introduced: 15 Jul 2026

NewCVE-2026-62312  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade 9router to version 0.5.2 or higher.

Overview

9router is a 9Router CLI - Start and manage 9Router server

Affected versions of this package are vulnerable to Command Injection via unvalidated arguments passed to the child_process.spawn function. An attacker can execute arbitrary commands on the host operating system by sending malicious custom plugins through the /api/mcp//sse endpoint after bypassing localhost-only route restrictions using a crafted Host header.

CVSS Base Scores

version 4.0
version 3.1