Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion') Affecting llama-index package, versions [,0.12.29)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.04% (13th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-LLAMAINDEX-10645575
  • published8 Jul 2025
  • disclosed7 Jul 2025
  • creditElias Hohl

Introduced: 7 Jul 2025

NewCVE-2025-3225  (opens in a new tab)
CWE-776  (opens in a new tab)

How to fix?

Upgrade llama-index to version 0.12.29 or higher.

Overview

llama-index is an Interface between LLMs and your data

Affected versions of this package are vulnerable to Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion') via the parse_sitemap () function. An attacker can exhaust system memory and potentially cause a system crash by supplying a specially crafted XML file containing excessive entity expansions.

References

CVSS Base Scores

version 4.0
version 3.1