---
id: CVE-2025-5302
aliases:
  - GHSA-7753-xrfw-ch36
  - PYSEC-2026-1561
title: LlamaIndex affected by a Denial of Service (DOS) in JSONReader
summary: LlamaIndex affected by a Denial of Service (DOS) in JSONReader
severity: high
cvss: 8.6
cvssVector: 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H'
vendor: llama-index-core
product: llama-index-core
ecosystem: pip
affected:
  - llama-index-core < 0.12.38
patched:
  - llama-index-core 0.12.38
published: '2025-08-26'
updated: '2026-07-07'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-7753-xrfw-ch36'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-5302'
  - url: >-
      https://github.com/run-llama/llama_index/commit/c032843a02ce38fd8f284b2aa5a37fd1c17ae635
  - url: 'https://github.com/run-llama/llama_index'
  - url: 'https://huntr.com/bounties/70041b81-de9e-4046-8c0e-6ccd557048a6'
tags:
  - osv
  - pip
epss: 0.00285
epssPercentile: 0.2129
ingestedAt: '2026-07-08T18:25:46.795Z'
---

## Overview

A denial of service vulnerability exists in the JSONReader component of the run-llama/llama_index repository, specifically in version v0.12.37. The vulnerability is caused by uncontrolled recursion when parsing deeply nested JSON files, which can lead to Python hitting its maximum recursion depth limit. This results in high resource consumption and potential crashes of the Python process. The issue is resolved in version 0.12.38.

## Affected packages

- `llama-index-core < 0.12.38`

## Remediation

Upgrade to a patched release:

- `llama-index-core 0.12.38`
