CVE-2026-61736: LightRAG <= 1.5.3 - Credentialed CORS Wildcard

2026-09-16 PoC Public

Description

LightRAG <= 1.5.4 contains a broken access control vulnerability caused by default CORS_ORIGINS=* with allow_credentials=True in lightrag_server.py, letting malicious websites perform authenticated API requests, exploit requires authenticated user.

PoC

id: CVE-2026-61736

info:
  name: LightRAG <= 1.5.3 - Credentialed CORS Wildcard
  author: str4k3r
  severity: high
  description: |
    LightRAG <= 1.5.4 contains a broken access control vulnerability caused by default CORS_ORIGINS=* with allow_credentials=True in lightrag_server.py, letting malicious websites perform authenticated API requests, exploit requires authenticated user.
  impact: |
    Malicious websites can perform authenticated API requests to exfiltrate or delete data, leading to data loss and information disclosure.
  remediation: |
    Update to version 1.5.4 or later.
  reference:
    - https://github.com/HKUDS/LightRAG/security/advisories/GHSA-6x6h-qqr7-855w
    - https://github.com/HKUDS/LightRAG/commit/09567a4c983f580050db63569dd477122c058c3d
    - https://nvd.nist.gov/vuln/detail/CVE-2026-61736
  classification:
    cve-id: CVE-2026-61736
    epss-score: 0.01422
    epss-percentile: 0.72064
    cwe-id: CWE-942
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
    cvss-score: 9.3
  metadata:
    verified: true
    max-request: 2
    vendor: hkuds
    product: lightrag
    shodan-query: http.html:"LightRAG"
    fofa-query: body="LightRAG"
  tags: cve,cve2026,lightrag,cors,misconfig

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

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

    redirects: true
    max-redirects: 3

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_any(tolower(body), "lightrag", "light-rag", "knowledge graph")'
        condition: and
        internal: true

  - raw:
      - |
        OPTIONS /query HTTP/1.1
        Host: {{Hostname}}
        Origin: {{cors_origin}}
        Access-Control-Request-Method: POST
        Access-Control-Request-Headers: authorization,content-type

    payloads:
      cors_origin:
        - "https://{{tolower(rand_base(5))}}.com"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(tolower(header), "access-control-allow-origin: {{cors_origin}}")'
          - 'contains(tolower(header), "access-control-allow-credentials: true")'
        condition: and
# digest: 4b0a00483046022100f8829220d46ba1d28aeacbbf98d258799bc6e7d2c08461605437f1154f7b3c39022100b4fdd4dc96e51148ffd865f0ab0b1bff230a184adb3aa8f683663ae79d20ecd8:922c64590222798bb761d5b6d8e72950

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

References