Open-source package vulnerability · PyPI
CVE-2025-67221: orjson does not limit recursion for deeply nested JSON documents
highCVSS 4.0 7.7GHSA-hx9q-6w63-j58v
The orjson.dumps function in orjson before 3.11.6 does not limit recursion for deeply nested JSON documents.
Published Jan 22, 2026 · Updated Jun 6, 2026
Affected packages
orjson
- Ecosystem
- PyPI
- Affected
- < 3.11.6
- Fixed in
- 3.11.6
- Check
pip show orjson
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
The orjson.dumps function in orjson before 3.11.6 does not limit recursion for deeply nested JSON documents.
Credited to jrafkind-ai, bluestealth.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-67221
- https://github.com/ijl/orjson
- https://github.com/kpatsakis/orjson_vulnerability
- https://github.com/ijl/orjson/issues/620
- https://github.com/kpatsakis/CVE-2025-67221/issues/1
- https://github.com/ijl/orjson/commit/62bb185b70785ded49c79c26f8c9781f1e6fe370
- https://github.com/pypa/advisory-database/tree/main/vulns/orjson/PYSEC-2026-107.yaml
- https://github.com/advisories/GHSA-hx9q-6w63-j58v
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
