Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. 9router
  4. ›
  5. GHSA-g6g7-pvmx-m74p

GHSA-g6g7-pvmx-m74p: 9router: Missing Authorization and OS Command Injection

July 2, 2026 (updated July 7, 2026)

POST /api/tunnel/tailscale-install accepts a JSON body with a sudoPassword field and pipes it, followed by the body of https://tailscale.com/install.sh, into a child process spawned as sudo -S sh. The route is not present in the dashboard middleware matcher in src/proxy.js, so the request reaches the handler without invoking dashboardGuard.proxy(). In deployments where the Node process runs as root (Docker images derived from node:* without a USER directive, npm i -g 9router invoked as root, or systemd units without User=), the spawned sh runs as root and executes the attacker-supplied bytes.

References

  • github.com/advisories/GHSA-g6g7-pvmx-m74p
  • github.com/decolua/9router/releases?q=0.4.44&expanded=true
  • github.com/decolua/9router/security/advisories/GHSA-g6g7-pvmx-m74p
  • nvd.nist.gov/vuln/detail/CVE-2026-59800

Code Behaviors & Features

Detect and mitigate GHSA-g6g7-pvmx-m74p with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.4.44

Fixed versions

  • 0.4.44

Solution

Upgrade to version 0.4.44 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  • CWE-862: Missing Authorization

Source file

npm/9router/GHSA-g6g7-pvmx-m74p.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 13 Jul 2026 00:19:18 +0000.