Advisory

PYSEC-2026-1561

Also known as: CVE-2025-5302, GHSA-7753-xrfw-ch36

Summary

LlamaIndex affected by a Denial of Service (DOS) in JSONReader

Details

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.

Severity

High Basis: CVSS v3 score 8.6, vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H

Dates

Published
2026-07-07 16:03 UTC
Modified
2026-07-07 17:46 UTC

Affected packages and fixes

llama-index-core

PyPI · All systems

Affected

  • introduced 0, fixed 0.12.38 (ecosystem)

Fixed versions

0.12.38

Fix

  • Fixed version 0.12.38
    pip install --upgrade llama-index-core==0.12.38

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences