Patchfirst
CVE-2026-59800 Critical · 9.8 EPSS 2.1%

9Router < 0.4.44 - OS Command Injection via sudoPassword Parameter in Tailscale Install Endpoint

Fix:upgrade 9router to 0.5.8 or later also fixes CVE-2026-55500, CVE-2026-56681 Details ↓

decolua · 9router

Summary

A flaw in the 9Router product (versions before 0.4.44) lies in the unauthenticated POST /api/tunnel/tailscale-install endpoint, where the sudoPassword request field is passed unsanitised to a 'sudo -S sh' child process. An attacker with network access can send a crafted request to this endpoint with no credentials or user interaction, and command injection succeeds when sudo does not prompt for a password, which occurs if the process runs as root, NOPASSWD is configured, or a recent sudo timestamp cache exists.

Official description · CVE.org

9Router before 0.4.44 contains an OS command injection vulnerability in the unauthenticated POST /api/tunnel/tailscale-install endpoint (this route is not covered by the dashboard middleware matcher, so no authorization check is applied). The sudoPassword field from the request body is written to the stdin of a 'sudo -S sh' child process. When sudo does not prompt for a password (the process runs as root, NOPASSWD is configured, or a recent sudo timestamp cache exists), the sudoPassword value is interpreted by sh as a shell command, allowing a remote unauthenticated attacker to execute arbitrary OS commands. Exploitation evidence was first observed by the Shadowserver Foundation on 2026-07-04 (UTC).

Breakdown
63.3 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited the day it was disclosed.

  1. DisclosedFirst seen exploitedVulnCheck KEV evidenceday 0

6 fixes in 9router over 3 months. The latest fix listed for 9router is 0.5.2.

Fixes in 9routernpm package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 0.3.75CVE-2026-58429 Apr 2026
  2. 0.4.37CVE-2026-4633915 Jul 2026
  3. 0.4.44CVE-2026-598007 Jul 2026
  4. 0.4.45CVE-2026-4935215 Jul 2026
  5. 0.4.77CVE-2026-5550110 Jul 2026
  6. 0.5.2CVE-2026-5563810 Jul 2026Latest listed

Affected versions and fixes

as published in the CVE record

decolua 9router

Affected: < 0.4.44

Not affected: 0.4.44

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: 9router.

Upgrade to 0.5.8 or later

Fixes this CVE and 2 other known vulnerabilities in this package (CVE-2026-55500, CVE-2026-56681).

npmnpm install 9router@0.5.8

First fixed in 0.4.44 for CVE-2026-59800.

Affected versions

If you runUpgrade to
All versions before 0.4.440.5.8first fix for this CVE: 0.4.44

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

References

2 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close