Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. orjson
  4. ›
  5. CVE-2025-67221

CVE-2025-67221: orjson does not limit recursion for deeply nested JSON documents

January 22, 2026 (updated March 12, 2026)

The orjson.dumps function in orjson before 3.11.6 does not limit recursion for deeply nested JSON documents.

References

  • github.com/advisories/GHSA-hx9q-6w63-j58v
  • github.com/ijl/orjson
  • github.com/ijl/orjson/commit/62bb185b70785ded49c79c26f8c9781f1e6fe370
  • github.com/ijl/orjson/issues/620
  • github.com/kpatsakis/CVE-2025-67221/issues/1
  • github.com/kpatsakis/orjson_vulnerability
  • nvd.nist.gov/vuln/detail/CVE-2025-67221

Code Behaviors & Features

Detect and mitigate CVE-2025-67221 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.11.6

Fixed versions

  • 3.11.6

Solution

Upgrade to version 3.11.6 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

pypi/orjson/CVE-2025-67221.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 25 Mar 2026 00:18:32 +0000.