Skip to content
Threat Brief

← All advisories

CVE-2026-133276

Medium 6.3No known exploitationFix available

Validation bypass of Pydantic V1 dataclasses allowing extra data

Record last updated

CVSS score

6.3

Medium on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

0.5%

Higher than 41% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

Not in the KEV catalog

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.

Weakness: CWE-20

Patching and mitigation

Patch status
Fix available (source: CVE record (Pydantic))
Fix documented (source date)
Mitigation
None documented
Vendor guidance
github.com (opens in a new tab)

Affected products

VendorProductAffected versionsFixed inPer
pydanticpydanticfrom 1.10.0 before 1.10.271.10.27CVE Program

Timeline

  1. Disclosure

    CVE record published by Pydantic

    Source: CVE Program (opens in a new tab)

  2. Patch

    Fix documented by CVE record (Pydantic)

    Source: CVE record (Pydantic) (opens in a new tab)

Vendor guidance and references