---
id: CVE-2025-1752
aliases:
  - GHSA-7c85-87cp-mr6g
  - PYSEC-2026-1554
title: LlamaIndex Vulnerable to Denial of Service (DoS)
summary: LlamaIndex Vulnerable to Denial of Service (DoS)
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
vendor: llama-index
product: llama-index
ecosystem: pip
affected:
  - 'llama-index >= 0.12.15, < 0.12.21'
patched:
  - llama-index 0.12.21
published: '2025-05-10'
updated: '2026-07-07'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-7c85-87cp-mr6g'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-1752'
  - url: >-
      https://github.com/run-llama/llama_index/commit/3c65db2947271de3bd1927dc66a044da385de4da
  - url: 'https://github.com/run-llama/llama_index'
  - url: 'https://huntr.com/bounties/cd7b9082-7d75-42e4-84f5-dbee23cbc467'
tags:
  - osv
  - pip
epss: 0.005
epssPercentile: 0.41865
ingestedAt: '2026-07-08T18:25:46.962Z'
---

## Overview

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.

## Affected packages

- `llama-index >= 0.12.15, < 0.12.21`

## Remediation

Upgrade to a patched release:

- `llama-index 0.12.21`
