Skip to main content

Pydantic CVE-2026-133276

| EUVDEUVD-2026-130375 MEDIUM
Improper Input Validation (CWE-20)
2026-11-19 Pydantic
6.3
CVSS 4.0 · Vendor: Pydantic
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit untrusted data to Pydantic V1 dataclass validation
  2. Exploit
    Inject __pydantic_initialised__ key to force already-validated state
  3. Execution
    Deliver malformed field values that skip type checks
  4. Impact
    Downstream code consumes data violating declared types

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Exploitation Conditions

Exploitation requires all of: (1) the target uses a Pydantic V1 dataclass - either Pydantic V1 in the affected range 1.10.0 through 1.10.26, or the pydantic.v1 compatibility namespace in Pydantic V2 before 2.14.2; (2) that dataclass is configured with extra=Extra.allow (not the default, which is ignore); and (3) the application validates attacker-controlled/untrusted input into it. The attacker then supplies a __pydantic_initialised__ key (e.g. true) among the input, which overrides the internal flag so field values are never validated. Limiting factors that reduce real-world exposure: the non-default extra=Extra.allow setting, the scope being V1 dataclasses specifically (not BaseModel models and not V2-native models), and the impact being limited to type/validation integrity rather than confidentiality or availability.

Impact

This is a genuine but bounded issue. The vendor-supplied CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N) scores 6.3 (medium), and the only impact metric set is integrity-low - there is no confidentiality or availability impact, consistent with a validation/type-safety bypass rather than code execution or data disclosure. The AT:P (attack requirement present) metric reflects that exploitation is conditional on a specific non-default configuration (extra=Extra.allow on a Pydantic V1 dataclass), not a race or timing condition - the trigger itself is a single attacker-supplied key. KEV status is not listed, so there is no confirmed active exploitation; no EPSS score was provided in the input, so probabilistic exploitation likelihood cannot be compared here and should be treated as unknown/missing. No dedicated public exploit tool is identified, though the published advisory and fix commit document the exact one-line trigger (__pydantic_initialised__: true), making reproduction trivial. The vuln.today decision label is 'this_month', indicating a schedule-the-fix priority rather than an emergency. Net: a real priority for the narrow set of applications that validate untrusted data into V1 dataclasses with extra allowed, but not a widespread drop-everything event given the medium severity, integrity-only impact, and required non-default configuration.

Exploit ScenarioDerived

An application validates untrusted input (e.g. a JSON request body) into a Pydantic V1 dataclass configured with extra=Extra.allow. The attacker includes __pydantic_initialised__: true alongside malformed field values; Pydantic treats the instance as already validated and skips field validation, so downstream code receives an object whose values violate the declared types. No dedicated exploit tool is needed - the advisory's own regression test documents the exact trigger, so this is low-complexity (AC:L) network-reachable abuse limited only by the required configuration.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 19, 2026

A validation bypass in Pydantic V1 dataclasses that allow extra fields (extra=Extra.allow) lets an attacker slip a __pydantic_initialised__ key into the input so the instance is treated as already validated and its field values are never type-checked. Affected are Pydantic 1.10.0 through 1.10.26, plus Pydantic V2 releases before 2.14.2 for code using the pydantic.v1 compatibility namespace; applications must additionally validate untrusted data into such a dataclass. The CVSS 4.0 score is 6.3 with a PR:N/UI:N vector (unauthenticated remote input), the assessed CVSS 3.1 vector is AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N, and no public exploit was identified at time of analysis - impact is confined to integrity of validated data, not confidentiality or availability.

RemediationAI

Vendor-released patches are available: upgrade Pydantic V1 to 1.10.27 or later, or, if you depend on the pydantic.v1 namespace inside Pydantic V2, upgrade to 2.14.2 or later (https://github.com/pydantic/pydantic/releases/tag/v2.14.2); the fix commit is https://github.com/pydantic/pydantic/commit/b26913fe6 and the advisory is https://github.com/pydantic/pydantic/security/advisories/GHSA-r49w-vh47-r4hf . Patching is the complete fix because it stops any key prefixed with __pydantic from being written into the instance __dict__. Where an upgrade cannot be scheduled immediately, the exposure can be narrowed at the application layer: stop declaring affected V1 dataclasses with extra=Extra.allow where extras are not genuinely required (switching to Extra.ignore or Extra.forbid changes behaviour - with forbid, payloads carrying unexpected keys will now raise ValidationError, which callers must handle), or reject or strip any incoming key beginning with __pydantic before handing data to parse_obj/parse_raw_as/the dataclass constructor. These are compensations only for the specific __pydantic_initialised__ bypass and do not substitute for the patched version; reviewing code paths that feed untrusted input into V1 dataclasses will show which deployments are actually reachable. No exploitation activity is confirmed through CISA KEV and no public exploit was identified at time of analysis, so remediation follows the vendor's normal release cadence rather than an emergency response.

Affected VersionsENISA

Pydantic 1.10.0 <1.10.27

Affected Packages

euvd pydantic fix: 1.10.27

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Pydantic V1's dataclass support wraps the standard dataclass __init__. When config.extra == Extra.allow, handle_extra_init copies every unmatched keyword argument into the instance __dict__ via self.__dict__.setdefault(k, v) before the real dataclass initialiser runs on the declared fields only. A separate routine, _dataclass_validate_values, early-returns whenever getattr(self, '__pydantic_initialised__') is truthy, on the assumption that the instance has already been through validation. Because user-supplied extras were written straight into __dict__, an attacker who supplies __pydantic_initialised__: true (or any truthy value) pre-sets that internal sentinel, so the validation pass is skipped entirely and the returned object can carry values that do not match the declared types. This is CWE-20 improper input validation - a trust boundary problem where internal bookkeeping attributes are reachable from untrusted input, not a memory-safety or cryptographic flaw. The upstream fix (commit b26913fe6) filters extra keys so anything beginning with __pydantic is discarded rather than stored, and adds a regression test covering both direct construction and parse_raw_as with a JSON payload. Scope is narrow by design: it concerns Pydantic V1 dataclasses only - not BaseModel models and not V2-native models - and only when extras are explicitly allowed rather than the default ignore behaviour. The CPE cpe:2.3:a:pydantic:pydantic covers the library across both affected lines.

Know when Pydantic gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Pydantic) PRIMARY 6.3 MEDIUM
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
vuln.today AI 5.3 MEDIUM

Network-reachable, attacker-controlled key makes the trigger low-complexity and unauthenticated; the required extra=Extra.allow config is a precondition, and impact is integrity-only (malformed data accepted), with no confidentiality or availability effect.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Red Hat 5.3 MEDIUM

Primary rating from Vendor (Pydantic).

CVSS VectorVendor: Pydantic

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 19, 2026 - 18:19 EUVD
CVE Published
Nov 19, 2026 - 16:15 cve.org
MEDIUM 6.3

DescriptionCVE.org

Summary

When extra data is allowed, providing a __pydantic_initialised__ key when validating a Pydantic V1 dataclass makes it considered as already validated, resulting in field values not being validated.

Details

When extra data is allowed, the __init__() method of Pydantic V1 dataclasses stores all the provided keyword arguments in the instance __dict__ before validation (pydantic/dataclasses.py):

python
elif config.extra == Extra.allow:
    for k, v in kwargs.items():
        self.__dict__.setdefault(k, v)
    init(self, *args, **{k: v for k, v in kwargs.items() if k in self.__dataclass_fields__})

A __pydantic_initialised__ keyword argument thus overrides the internal flag used to skip validation of already validated instances (pydantic/dataclasses.py):

python
def _dataclass_validate_values(self: 'Dataclass') -> None:
# validation errors can occur if this function is called twice on an already initialised dataclass.
# for example if Extra.forbid is enabled, it would consider __pydantic_initialised__ an invalid extra property
    if getattr(self, '__pydantic_initialised__'):
        return

The issue was fixed in commit https://github.com/pydantic/pydantic/commit/b26913fe6, published in V1.10.27.

If you are relying on the pydantic.v1 namespace in Pydantic V2, upgrade to V2.14.2 or later.

Impact

Validation bypass: data returned by validation doesn't match the declared type. Affected are applications validating untrusted data into Pydantic V1 dataclasses allowing extra data (with extra=Extra.allow).

Threat Intelligence Overview

EPSS Score
0.5%
Top 59% exploitable
Prevalence
High
Pydantic is a very widely deployed Python validation library
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0
CVE-2025-55526 CRITICAL POC
9.1 Aug 26

n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w

CVE-2026-25580 HIGH POC
8.6 Feb 06

Pydantic AI versions 0.0.26 through 1.55.x contain a server-side request forgery vulnerability in URL download functiona

CVE-2024-3772 HIGH POC
7.5 Apr 15

Regular expression denial of service in Pydanic < 2.4.0, < 1.10.13 allows remote attackers to cause denial of service vi

CVE-2026-84381 HIGH
8.1 Sep 02

HTTPX2's SOCKS5 proxy implementation omits TLS negotiation for WebSocket Secure (wss://) origins, exposing the full WebS

CVE-2026-107295 HIGH
7.6 Oct 08

Cross-site request forgery in Pydantic AI's development web chat UI allows any website a developer happens to visit whil

CVE-2026-107286 HIGH
7.5 Oct 08

Concurrency slot exhaustion in Pydantic AI 2.10.0 through 2.52.x lets streamed model requests permanently occupy slots i

CVE-2026-133161 HIGH
7.5 Nov 19

Denial of service in Pydantic AI Harness (pydantic-ai-harness) 0.4.0 through 0.69.0 lets attacker-influenced tool output

CVE-2026-84382 HIGH
7.5 Sep 02

Memory exhaustion via unbounded decompression in HTTPX2 (all versions before 2.12.0) allows any HTTP server the client c

CVE-2021-29510 HIGH
7.5 May 13

Pydantic is a data validation and settings management using Python type hinting. Rated high severity (CVSS 7.5), this vu

CVE-2026-133421 MEDIUM
6.9 Nov 20

Quadratic-time validation of untrusted ISO 8601 duration strings in Pydantic V1 lets remote attackers exhaust CPU by sub

CVE-2026-133422 MEDIUM
6.9 Nov 20

Denial of service in Pydantic V1 arises when an application validates attacker-supplied lists into a field constrained w

CVE-2026-48782 MEDIUM
6.8 Jun 16

Server-Side Request Forgery in Pydantic AI (versions 1.56.0-1.101.0, 2.0.0b1, 2.0.0b2) allows unauthenticated network at

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy