MediumGHSA-mr82-8j83-vxmvCVE-2024-3772PYSEC-2026-1812

Pydantic regular expression denial of service

Published 15 Apr 2024 · Updated 7 Aug 2026

Is your project on an affected pydantic?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
>=2.0.0 <2.4.0
Fixed in
2.4.0
Update to the fixed version for your release line, for example:pip install 'pydantic>=2.4.0'
Affected
<1.10.13
Fixed in
1.10.13
Update to the fixed version for your release line, for example:pip install 'pydantic>=1.10.13'

Details

Regular expression denial of service in Pydantic < 2.4.0, < 1.10.13 allows remote attackers to cause denial of service via a crafted email string.

Is GHSA-mr82-8j83-vxmv in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected pydantic, and gives you the command that fixes it.

More advisories for pydantic

  • MediumCVE-2021-29510Use of "infinity" as an input to datetime and date fields causes infinite loop in pydantic · 13 May 2021
pydantic security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.