9router: Image prefetch DNS rebinding allows SSRF to internal services
decolua 9router
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| 9router npm |
|
|
Original description
9Router is an AI router & token saver. Prior to 0.5.2, 9router validates image URLs by resolving the host before fetching, but open-sse/translator/concerns/image.js performs the later server-side image fetch with a separate DNS resolution. An authenticated attacker with access to the LLM proxy can use a vision-capable model and an attacker-controlled DNS name that first resolves to a public IP and then rebinds to an internal address, allowing server-side requests to internal-only HTTP services. This issue is fixed in version 0.5.2.
From the CVE record · GitHub_M
References
- github.com/decolua/9router/security/advisories/GHSA-cmhj-wh2f-9cgxExploit
- github.com/decolua/9router/commit/c7d07448c58bec1200741de0b73305b860416b82
- github.com/decolua/9router/releases/tag/v0.5.2
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/56xxx/CVE-2026-56676.json
- nvd.nist.gov/vuln/detail/CVE-2026-56676
- github.com/decolua/9router