Use of Hard-coded Credentials Affecting 9router package, versions >=0.2.21 <0.4.45


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.19% (41st 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 Use of Hard-coded Credentials vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-9ROUTER-17817942
  • published5 Jul 2026
  • disclosed2 Jul 2026
  • creditUnknown

Introduced: 2 Jul 2026

NewCVE-2026-49352  (opens in a new tab)
CWE-798  (opens in a new tab)

How to fix?

Upgrade 9router to version 0.4.45 or higher.

Overview

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

Affected versions of this package are vulnerable to Use of Hard-coded Credentials in the SECRET assignment process. An attacker can gain unauthorized access to the dashboard and API by forging a valid auth_token cookie using the publicly known default secret. This allows the attacker to read and modify sensitive data, including API keys and authentication tokens, and perform administrative actions such as changing passwords or shutting down the service. This is only exploitable if the JWT_SECRET environment variable is not set on the server.

Workaround

This vulnerability can be mitigated by setting a unique JWT_SECRET environment variable on the server.

References

CVSS Base Scores

version 4.0
version 3.1