cvelo
P3 · MediumCVSS 6.3EPSS 0.5%

Validation bypass of Pydantic V1 dataclasses allowing extra data

  • CVE-2026-133276
  • EUVD-2026-130375

Description

When extra data is allowed (extra=Extra.allow), providing a __pydantic_initialised__ key when validating a Pydantic V1 dataclass makes it considered as already validated, resulting in field values not being validated. The __init__() method of Pydantic V1 dataclasses stores all the provided keyword arguments in the instance __dict__ before validation, so a __pydantic_initialised__ keyword argument overrides the internal flag used to skip validation of already validated instances. As a result, data returned by validation doesn't match the declared type. Affected are applications validating untrusted data into Pydantic V1 dataclasses allowing extra data. The issue was fixed in Pydantic 1.10.27. Users relying on the pydantic.v1 namespace in Pydantic V2 should upgrade to 2.14.2 or later.

Text from the CVE.org record.

Recommendation

  • pydantic

    • If you run 1.10.xupdate to 1.10.27 or laterPatch update: breaking changes are unlikely

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • pydantic

    Affected versionsFixed in
    from 1.10.0 to before 1.10.271.10.27

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.