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?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
pydanticPyPI
- 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'pydanticPyPI
- 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
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2024-3772
- Linkgithub.com/pydantic/pydantic/pull/7360
- Linkgithub.com/pydantic/pydantic/commit/59d8f38fd6220e3917c53785dbc70317d6f8e631
- Linkgithub.com/pydantic/pydantic/commit/e4393ae6145c4dadff739990bb0116c6dec3441b
- Packagegithub.com/pydantic/pydantic
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6JBZLMSH4GAZOVBMT2JUO2LXHY7M2ALI
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.