Pydantic

Latest version: v2.10.4

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

Scan your dependencies

Page 8 of 26

2.0.2

Not secure
[GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.0.2)

* Fix bug where round-trip pickling/unpickling a `RootModel` would change the value of `__dict__`, [6457](https://github.com/pydantic/pydantic/pull/6457) by dmontagu
* Allow single-item discriminated unions, [6405](https://github.com/pydantic/pydantic/pull/6405) by dmontagu
* Fix issue with union parsing of enums, [6440](https://github.com/pydantic/pydantic/pull/6440) by dmontagu
* Docs: Fixed `constr` documentation, renamed old `regex` to new `pattern`, [6452](https://github.com/pydantic/pydantic/pull/6452) by miili
* Change `GenerateJsonSchema.generate_definitions` signature, [6436](https://github.com/pydantic/pydantic/pull/6436) by dmontagu

See the full changelog [here](https://github.com/pydantic/pydantic/releases/tag/v2.0.2)

2.0.1

Not secure
[GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.0.1)

First patch release of Pydantic V2

* Extra fields added via `setattr` (i.e. `m.some_extra_field = 'extra_value'`)
are added to `.model_extra` if `model_config` `extra='allowed'`. Fixed [6333](https://github.com/pydantic/pydantic/pull/6333), [#6365](https://github.com/pydantic/pydantic/pull/6365) by aaraney
* Automatically unpack JSON schema '$ref' for custom types, [6343](https://github.com/pydantic/pydantic/pull/6343) by adriangb
* Fix tagged unions multiple processing in submodels, [6340](https://github.com/pydantic/pydantic/pull/6340) by suharnikov

See the full changelog [here](https://github.com/pydantic/pydantic/releases/tag/v2.0.1)

2.0

Not secure
[GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.0)

Pydantic V2 is here! :tada:

See [this post](https://docs.pydantic.dev/2.0/blog/pydantic-v2-final/) for more details.

2.0b3

Not secure
Third beta pre-release of Pydantic V2

See the full changelog [here](https://github.com/pydantic/pydantic/releases/tag/v2.0b3)

2.0b2

Not secure
Add `from_attributes` runtime flag to `TypeAdapter.validate_python` and `BaseModel.model_validate`.

See the full changelog [here](https://github.com/pydantic/pydantic/releases/tag/v2.0b2)

2.0b1

Not secure
First beta pre-release of Pydantic V2

See the full changelog [here](https://github.com/pydantic/pydantic/releases/tag/v2.0b1)

Page 8 of 26

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.