Allocation of Resources Without Limits or Throttling Affecting pydantic package, versions [2.10.0,2.14.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.51% (37th 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 Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-PYDANTIC-22733162
  • published22 Nov 2026
  • disclosed20 Nov 2026
  • creditSounLabs, Syed Mohammad Ibrahim

Introduced: 20 Nov 2026

NewCVE-2026-133426  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade pydantic to version 2.14.0 or higher.

Overview

pydantic is a Data validation and settings management using python 3.6 type hinting

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via unbounded exponent computation in Fraction field validation. When a string in exponent notation (e.g. '1e8000000') is validated into a Fraction field, the create_fraction function passes the string directly to CPython's Fraction constructor, which computes the full power of ten as an arbitrary-precision integer with no bound on the exponent. An attacker can submit a short string with a large exponent to consume significant CPU time and cause the application to become unresponsive.

Note: This is only exploitable in applications that validate untrusted strings into Fraction fields (in both JSON and Python mode, including strict mode), using Pydantic 2.10.0 up to but excluding 2.14.0.

CVSS Base Scores

version 4.0
version 3.1