LlamaIndex vulnerable to data loss through hash collisions in its DocugamiReader class
A vulnerability in the DocugamiReader class of the run-llama/llama_index 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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | llama-index | < 0.12.41 | 0.12.41 |
| Python (PyPI) | llama-index-readers-docugami | < 0.3.1 | 0.3.1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-6211
- https://github.com/run-llama/llama_index/commit/29b2e07e64ed7d302b1cc058185560b28eaa1352
- https://github.com/run-llama/llama_index
- https://huntr.com/bounties/1a48a011-a3c5-4979-9ffc-9652280bc389
- https://pypi.org/project/llama-index-readers-docugami
- https://github.com/advisories/GHSA-5hq9-5r78-2gjh
- https://pypi.org/project/llama-index
- CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L- Weakness (CWE)
CWE-440- Platform
- Python (PyPI)
- Package
llama-index, llama-index-readers-docugami- Disclosed
- 10.07.2025
- Updated
- 11.10.2026 15:17
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-1566 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - PYSEC-2026-2606 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-5hq9-5r78-2gjh - CC BY 4.0
Vulnerability history: llama-index-readers-docugami
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.