Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

GHSA-jphh-m39h-6gwx: 9router's Hardcoded Default fallback JWT Secret Allows Authentication Bypass

0
Critical
Published: 07/02/2026 (07/02/2026, 20:56:55 UTC)
Source: GCVE Database
Product: 9router

Description

9router versions from 0.2.21 up to but not including 0.4.45 use a publicly known hardcoded fallback JWT secret string "9router-default-secret-change-me" when the JWT_SECRET environment variable is not set. This allows unauthenticated remote attackers to forge valid authentication tokens and gain full access to the dashboard and API. The vulnerability has existed since the introduction of authentication in 9router and remains due to the fallback secret being unchanged and publicly committed. Successful exploitation grants attackers full API keys, authentication tokens, and the ability to modify or shut down the router. The recommended fix is to require the JWT_SECRET environment variable at startup and fail if it is not set, preventing fallback to the hardcoded secret.

CVSS v3.1

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected software

npmghsa
9router
Affected versions
>=0.2.21 <0.4.45

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

AILast updated: 07/02/2026, 23:05:01 UTC

Technical Analysis

9router uses a hardcoded fallback JWT secret "9router-default-secret-change-me" for signing dashboard session JWTs if the JWT_SECRET environment variable is unset. This secret is publicly known and unchanged across all releases from version 0.2.21 through 0.4.41. An attacker can forge valid JWT tokens signed with this secret to bypass authentication and gain full access to the dashboard and API. The vulnerability was introduced in commit 23cfb19 and persists due to fallback usage rather than requiring a configured secret. Exploitation allows reading and modifying sensitive data including API keys and passwords, and enables further pivoting via other exposed interfaces. The recommended remediation is to enforce the presence of a JWT_SECRET environment variable at startup, failing fast if missing, to prevent use of the hardcoded secret.

Potential Impact

Exploitation allows unauthenticated remote attackers to bypass authentication by forging JWT tokens signed with the known fallback secret. This grants full access to the 9router dashboard and API, enabling attackers to read API keys and authentication tokens, change passwords, shut down the router, and modify all settings. Additionally, attackers can pivot through other exposed interfaces such as the MCP stdio→SSE bridge. The impact is complete compromise of the affected 9router instances that do not have JWT_SECRET set.

Mitigation Recommendations

No official patch is currently documented. The recommended mitigation is to configure the JWT_SECRET environment variable with a strong secret and ensure the application fails to start if JWT_SECRET is not set, preventing fallback to the hardcoded default. Alternatively, generate and persist a random secret on first boot but never use the publicly known fallback secret. Operators should verify their 9router instances do not rely on the default secret and update configurations accordingly.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-jphh-m39h-6gwx
Osv Schema Version
1.4.0
Aliases
["CVE-2026-49352"]
Ecosystems
["npm"]
Database Specific Severity
CRITICAL
Cvss Version
3.1

Threat ID: 6a46ecae27e9c7971943b8b5

Added to database: 07/02/2026, 22:56:46 UTC

Last enriched: 07/02/2026, 23:05:01 UTC

Last updated: 07/02/2026, 23:56:12 UTC

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses