CVE-2026-133276
Received Received - Intake

Pydantic V1 Dataclass Validation Bypass via __pydantic_initialised__

Vulnerability report for CVE-2026-133276, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-19

Last updated on: 2026-11-19

Assigner: 7cec5f2f-3032-4006-8740-31f605ffab5f

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-19
Last Modified
2026-11-19
Generated
2026-11-20
AI Q&A
2026-11-19
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
tiangolo pydantic to 1.10.27 (inc)
tiangolo pydantic From 2.14.2 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-20 The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability occurs in Pydantic V1 dataclasses when extra data is allowed. If a __pydantic_initialised__ key is provided during validation, the system incorrectly assumes the data is already validated. This bypasses proper field validation, causing the returned data to not match the declared type. The issue arises because the __init__ method stores all keyword arguments in the instance dictionary before validation, allowing an attacker to override the internal flag that skips validation.

Impact Analysis

This vulnerability can lead to incorrect data processing, where untrusted input is accepted as valid without proper type checking. Applications relying on Pydantic V1 dataclasses to validate untrusted data may process malformed or malicious data, potentially causing runtime errors, data corruption, or security issues like injection attacks.

Mitigation Strategies

Upgrade Pydantic to version 1.10.27 or later if using Pydantic V1. For Pydantic V2 users relying on pydantic.v1 namespace, upgrade to 2.14.2 or later. Review applications validating untrusted data into Pydantic V1 dataclasses allowing extra data.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-133276. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...