๐Ÿ” CVE Alert

CVE-2026-133421

UNKNOWN 0.0

Quadratic time timedelta validation in Pydantic V1

CVSS Score
0.0
EPSS Score
0.7%
EPSS Percentile
53th

Validating an untrusted ISO 8601 duration string into a timedelta field with Pydantic V1 takes quadratic time: an input of a few dozen kilobytes takes seconds to validate. The iso8601_duration_re regular expression used to parse ISO 8601 durations (in pydantic/datetime_parse.py) contains an unescaped ".", which also matches digits. On a string of digits, the repeated groups overlap and the regex engine backtracks in quadratic time. The issue was fixed in commit 62791e66a9f8f118e465ed760c9e2ede9ae3055e. Users relying on the pydantic.v1 namespace in Pydantic V2 should upgrade to 2.14.2 or later. Impact: denial of service through validation of untrusted input. Affected are applications validating untrusted strings into timedelta fields.

CWE CWE-1333
Vendor pydantic
Product pydantic
Published Nov 20, 2026
Last Updated Nov 20, 2026
Stay Ahead of the Next One

Get instant alerts for pydantic pydantic

Be the first to know when new unknown vulnerabilities affecting pydantic pydantic are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

Affected Versions

pydantic / pydantic
0 โ‰ค 1.10.26

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/pydantic/pydantic/security/advisories/GHSA-jfv7-ghgv-gx4x github.com: https://github.com/pydantic/pydantic/blob/v1.10.26/pydantic/datetime_parse.py#L45 github.com: https://github.com/pydantic/pydantic/commit/62791e66a9f8f118e465ed760c9e2ede9ae3055e github.com: https://github.com/pydantic/pydantic/releases/tag/v2.14.2

Credits

edibleShell SounLabs iamibi