CVE-2026-114507: LightRAG cached answers without the conversation history, so an unauthenticated /api/chat caller could plant the answer other users get for a question (fixed 1.5.5)
LightRAG, HKUDS's popular open-source RAG framework, caches generated answers under a key built from the query, mode, retrieval settings, user_prompt and model, but not conversation_history, even though that history is sent to the LLM and changes the answer. An unauthenticated caller using POST /api/chat (whitelisted by default) could steer the answer stored for a question, and authenticated users calling /query later received that answer verbatim, with no LLM call or guardrail, next to genuine-looking references. Fixed in 1.5.5.
What it is
compute_args_hash left conversation_history out of the cache key (CWE-349). WHITELIST_PATHS defaults to /health,/api/*, and both /api/chat and /query default to mode mix and the same TOP_K, so their cache keys collide by construction.
The poisoned answer is shown with live retrieval references, so it looks well sourced. With the default JsonKVStorage it is written to kv_store_llm_response_cache.json with no TTL and survives restarts until cleared.
Limits: first writer wins (an existing cache entry can't be overwritten through this path), and private context from one caller's history can only leak to callers sharing the same knowledge base.
Affected: lightrag-hku < 1.5.5; fixed in 1.5.5 (released 31 July 2026). GitHub advisory published 29 July 2026; NVD published the CVE on 26 November 2026. Reported by santhreal.
How to check
- Run pip show lightrag-hku: versions below 1.5.5 are affected.
- If your LightRAG server was reachable without auth on /api/*, treat the LLM response cache as untrusted.
How to fix
- Upgrade with pip install -U 'lightrag-hku>=1.5.5' (or pull the 1.5.5+ image).
- Clear the query cache after upgrading (for JsonKVStorage, delete kv_store_llm_response_cache.json), and require auth on /api/* if the server is exposed.
pip show lightrag-hku | grep -i '^version'
pip install -U 'lightrag-hku>=1.5.5'