Medium, CVSS 6.5PyPIAmendedPublished
LlamaIndex vulnerable to data loss through hash collisions in its DocugamiReader class
CVE-2025-6211 · GHSA-5hq9-5r78-2gjh
- Affected
- PyPI llama-index-readers-docugami < 0.3.1
- Fixed in
- 0.3.1· Vendor fix available
- Issue
- A vulnerability in the DocugamiReader class of the run-llama/llamaindex repository, up to but excluding version 0.12.41, involves the use of MD5 hashing to generate IDs for document chunks. This approach leads to hash collisions when structurally distinct chunks contain identical text, resulting in one chunk overwriting another. This can cause loss of semantically or legally important document content, breakage of parent-child chunk hierarchies, and inaccurate or hallucinated responses in AI outputs. The issue is resolved in version 0.3.1.
Recommended action: Upgrade to 0.3.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.