VDB
Sign up
HIGH7.5

PYSEC-2026-1554

LlamaIndex Vulnerable to Denial of Service (DoS)

Quick fix

PYSEC-2026-1554 — llama-index: upgrade to the fixed version with the command below.

pip install --upgrade 'llama-index>=0.12.21'

Details

A Denial of Service (DoS) vulnerability has been identified in the KnowledgeBaseWebReader class of the run-llama/llama_index project, affecting version ~ latest(v0.12.15). The vulnerability arises due to inappropriate secure coding measures, specifically the lack of proper implementation of the max_depth parameter in the get_article_urls function. This allows an attacker to exhaust Python's recursion limit through repeated function calls, leading to resource consumption and ultimately crashing the Python process.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/llama-index
Introduced in: 0.12.15Fixed in: 0.12.21
Fixpip install --upgrade 'llama-index>=0.12.21'

References