# CVE-2026-85709: LightRAG API sensitive information exposure in error responses

Source: https://junglewise.ai/threats/cve-2026-85709-lightrag-api-sensitive-information-exposure-in-error-responses  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-22. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-85709 · Severity: medium · CVSS 5.3 · Published 2026-09-22

LightRAG is an open-source API server for building retrieval-augmented generation (RAG) systems. The API returns raw Python exception messages directly to clients in HTTP error responses, exposing internal infrastructure details such as server filesystem paths, database credentials and connection details, and system configuration. By default, the API requires no authentication, allowing any network-reachable client to trigger these errors and extract sensitive information without credentials.

Technologies: [HKUDS LightRAG](https://junglewise.ai/threats/technologies/lightrag), [lightrag-hku (PyPI)](https://junglewise.ai/threats/technologies/lightrag-hku). Vendors: [HKUDS](https://junglewise.ai/threats/vendors/hkuds), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2026-85709 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-85709 being exploited in the wild.

**How severe is CVE-2026-85709?** Medium severity, with a CVSS score of 5.3, published 22 September 2026.

**Which products and versions are affected?** HKUDS LightRAG main branch prior to commit 3422; lightrag-hku (PyPI) <= 1.5.4, ECOSYSTEM:introduced=0,fixed=1.5.5.

**Is there a fix for CVE-2026-85709?** Yes. lightrag-hku (PyPI): upgrade to 1.5.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-85709 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-85709?** Check whether you run HKUDS LightRAG or lightrag-hku (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- lightrag-hku (PyPI): upgrade to 1.5.5 or later

  ```sh
  pip install "lightrag-hku>=1.5.5"
  ```


## Technical details

The vulnerability is an information disclosure flaw (CWE-209 / CWE-215) in which exception handlers across 30+ API routes directly pass raw exception strings to HTTP error responses via `detail=str(e)` patterns instead of returning generic error messages. The root cause is insufficient input validation and exception sanitization in error handling logic. An unauthenticated network client can trigger exceptions (e.g., by requesting endpoints when storage backends are unavailable or misconfigured) to extract filesystem paths, database host/port/user/database names, LLM provider details, and Python stack traces. For URI-configured backends such as MongoDB, malformed configuration errors can expose the full connection string including embedded credentials. The fix involves replacing all raw exception passthrough with generic error messages, logging full exception details server-side, and implementing a global exception handler as defense-in-depth.

## Affected products

- HKUDS LightRAG main branch prior to commit 3422

## Identifiers

- CVE-2026-85709
- GHSA-hrmj-7rvj-4hg8
- PYSEC-2026-4063

## Timeline

- 2026-09-22: disclosed
- 2026-09-22: patched: fix implemented in HKUDS/LightRAG#3422

## Related threats

- [LightRAG WebUI stored XSS in chat answer renderer](https://junglewise.ai/threats/cve-2026-86062-lightrag-webui-stored-xss-in-chat-answer-renderer)
- [LightRAG SSRF via IPv6-transition address bypass in markdown image download](https://junglewise.ai/threats/cve-2026-85740-lightrag-ssrf-via-ipv6-transition-address-bypass-in-markdown)
- [lightrag-hku /login endpoint missing rate limiting enables brute-force attacks](https://junglewise.ai/threats/cve-2026-85734-lightrag-hku-login-endpoint-missing-rate-limiting-enables-brute)
- [LightRAG plaintext password timing attack vulnerability](https://junglewise.ai/threats/cve-2026-85725-lightrag-plaintext-password-timing-attack-vulnerability)
- [HKUDS LightRAG authentication bypass in API-key-only mode](https://junglewise.ai/threats/cve-2026-61740-hkuds-lightrag-authentication-bypass-in-api-key-only-mode)
