CVE-2026-133276
Validation bypass of Pydantic V1 dataclasses allowing extra data
- CVSS
- 6.3
- EPSS
- 0.47% (p42)
- Published
- 2026-11-19
- Age
- 15d old
- Modified
- 2026-11-23
- Product
- pydantic pydantic
- Aliases
- GHSA-r49w-vh47-r4hf
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
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.
Fixed in
1.10.27
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| unknown | pydantic | >=1.10.0, <1.10.27 | 1.10.27 |
Sources
- NVD · first seen 15d ago · NVD terms of use
- OSV · first seen 15d ago · CC-BY 4.0
- CVE List · first seen 15d ago · CVE Terms of Use
References
- https://github.com/pydantic/pydantic/security/advisories/GHSA-r49w-vh47-r4hf vendor-advisory
- https://github.com/pydantic/pydantic/blob/v1.10.26/pydantic/dataclasses.py#L295-L298 other
- https://github.com/pydantic/pydantic/blob/v1.10.26/pydantic/dataclasses.py#L430-L434 other
- https://github.com/pydantic/pydantic/commit/b26913fe6 other
- https://github.com/pydantic/pydantic/releases/tag/v2.14.2 other
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/133xxx/CVE-2026-133276.json advisory
- https://github.com/pydantic/pydantic package
- https://nvd.nist.gov/vuln/detail/CVE-2026-133276 advisory
- https://pypi.org web