Pydantic

Latest version: v2.11.1

Safety actively analyzes 723158 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 13 of 27

1.10.7

Not secure
* Fix creating schema from model using `ConstrainedStr` with `regex` as dict key, [5223](https://github.com/pydantic/pydantic/pull/5223) by matejetz
* Address bug in mypy plugin caused by explicit_package_bases=True, [5191](https://github.com/pydantic/pydantic/pull/5191) by dmontagu
* Add implicit defaults in the mypy plugin for Field with no default argument, [5190](https://github.com/pydantic/pydantic/pull/5190) by dmontagu
* Fix schema generated for Enum values used as Literals in discriminated unions, [5188](https://github.com/pydantic/pydantic/pull/5188) by javibookline
* Fix mypy failures caused by the pydantic mypy plugin when users define `from_orm` in their own classes, [5187](https://github.com/pydantic/pydantic/pull/5187) by dmontagu
* Fix `InitVar` usage with pydantic dataclasses, mypy version `1.1.1` and the custom mypy plugin, [5162](https://github.com/pydantic/pydantic/pull/5162) by cdce8p

1.10.6

Not secure
* Implement logic to support creating validators from non standard callables by using defaults to identify them and unwrapping `functools.partial` and `functools.partialmethod` when checking the signature, [5126](https://github.com/pydantic/pydantic/pull/5126) by JensHeinrich
* Fix mypy plugin for v1.1.1, and fix `dataclass_transform` decorator for pydantic dataclasses, [5111](https://github.com/pydantic/pydantic/pull/5111) by cdce8p
* Raise `ValidationError`, not `ConfigError`, when a discriminator value is unhashable, [4773](https://github.com/pydantic/pydantic/pull/4773) by kurtmckee

1.10.5

Not secure
* Fix broken parametrized bases handling with `GenericModel`s with complex sets of models, [5052](https://github.com/pydantic/pydantic/pull/5052) by MarkusSintonen
* Invalidate mypy cache if plugin config changes, [5007](https://github.com/pydantic/pydantic/pull/5007) by cdce8p
* Fix `RecursionError` when deep-copying dataclass types wrapped by pydantic, [4949](https://github.com/pydantic/pydantic/pull/4949) by mbillingr
* Fix `X | Y` union syntax breaking `GenericModel`, [4146](https://github.com/pydantic/pydantic/pull/4146) by thenx
* Switch coverage badge to show coverage for this branch/release, [5060](https://github.com/pydantic/pydantic/pull/5060) by samuelcolvin

1.10.4

Not secure
* fix parsing of custom root models, [4883](https://github.com/pydantic/pydantic/pull/4883) by gou177
* fix: use dataclass proxy for frozen or empty dataclasses, [4878](https://github.com/pydantic/pydantic/pull/4878) by PrettyWood
* Fix `schema` and `schema_json` on models where a model instance is a one of default values, [4781](https://github.com/pydantic/pydantic/pull/4781) by Bobronium
* Add Jina AI to sponsors on docs index page, [4767](https://github.com/pydantic/pydantic/pull/4767) by samuelcolvin
* fix: support assignment on `DataclassProxy`, [4695](https://github.com/pydantic/pydantic/pull/4695) by PrettyWood
* Add `postgresql+psycopg` as allowed scheme for `PostgreDsn` to make it usable with SQLAlchemy 2, [4689](https://github.com/pydantic/pydantic/pull/4689) by morian
* Allow dict schemas to have both `patternProperties` and `additionalProperties`, [4641](https://github.com/pydantic/pydantic/pull/4641) by jparise
* Fixes error passing None for optional lists with `unique_items`, [4568](https://github.com/pydantic/pydantic/pull/4568) by mfulgo
* Fix `GenericModel` with `Callable` param raising a `TypeError`, [4551](https://github.com/pydantic/pydantic/pull/4551) by mfulgo
* Fix field regex with `StrictStr` type annotation, [4538](https://github.com/pydantic/pydantic/pull/4538) by sisp
* Correct `dataclass_transform` keyword argument name from `field_descriptors` to `field_specifiers`, [4500](https://github.com/pydantic/pydantic/pull/4500) by samuelcolvin
* fix: avoid multiple calls of `__post_init__` when dataclasses are inherited, [4487](https://github.com/pydantic/pydantic/pull/4487) by PrettyWood
* Reduce the size of binary wheels, [2276](https://github.com/pydantic/pydantic/pull/2276) by samuelcolvin

1.10.3

Not secure

1.10.2

Not secure
* **Revert Change:** Revert percent encoding of URL parts which was originally added in [4224](https://github.com/pydantic/pydantic/pull/4224), [#4470](https://github.com/pydantic/pydantic/pull/4470) by samuelcolvin
* Prevent long (length > `4_300`) strings/bytes as input to int fields, see
[python/cpython95778](https://github.com/python/cpython/issues/95778) and
[CVE-2020-10735](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-10735), [#1477](https://github.com/pydantic/pydantic/pull/1477) by samuelcolvin
* fix: dataclass wrapper was not always called, [4477](https://github.com/pydantic/pydantic/pull/4477) by PrettyWood
* Use `tomllib` on Python 3.11 when parsing `mypy` configuration, [4476](https://github.com/pydantic/pydantic/pull/4476) by hauntsaninja
* Basic fix of `GenericModel` cache to detect order of arguments in `Union` models, [4474](https://github.com/pydantic/pydantic/pull/4474) by sveinugu
* Fix mypy plugin when using bare types like `list` and `dict` as `default_factory`, [4457](https://github.com/pydantic/pydantic/pull/4457) by samuelcolvin

Page 13 of 27

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.