Skip to main content

Pydantic CVE-2026-133424

| EUVDEUVD-2026-131092 MEDIUM
Improper Input Validation (CWE-20)
2026-11-20 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 input to validation endpoint
  2. Exploit
    Include both alias key and field-name key
  3. Execution
    Field-name value treated as extra, overwrites validated value
  4. Impact
    Type-invalid data returned to application logic

Vulnerability Assessment

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

Four concrete prerequisites must all hold: (1) the application validates untrusted data into a Pydantic V2 TypedDict or dataclass - Pydantic BaseModel is explicitly NOT affected because it stores extra data separately from fields; (2) the target type declares at least one aliased field (e.g. Field(alias='b')); (3) extra data is allowed, either via extra='allow' or, for TypedDict, via the extra_items argument; and (4) the attacker supplies BOTH the alias key and the field's real Python name in the same payload. Limiting factors that reduce real-world exposure: extra='allow'/extra_items is a non-default choice (default behavior ignores extras); an alias must be defined on the field; impact is confined to the integrity of the returned data (type mismatch) with no confidentiality, availability, or code-execution consequence; and only Pydantic versions up to and including 2.14.1 are affected (fixed in 2.14.2).

Impact

This is a genuine but low-to-moderate priority issue, not a drop-everything emergency. The multi-source signals are internally consistent and point the same way: the vulnerability is an integrity-only validation bypass (CVSS 4.0 base 6.3, VC:N/VI:L/VA:N - no confidentiality or availability impact, no code execution), the vuln.today decision label is 'this_month' (not act_now/emergency), and there is NO CISA KEV listing. EPSS is not provided in the input, so probabilistic exploitation likelihood cannot be quantified. The CVSS 4.0 vector is network-reachable (AV:N) and unauthenticated for data submission (PR:N/UI:N), but critically carries AT:P (attack requirements present), which correctly reflects that a specific non-default application configuration must already exist - aliased fields combined with extra='allow'. No weaponized exploit is indicated; however the GHSA advisory and the fix commit (34491f5) contain detailed reproduction and regression test cases that demonstrate the bypass concretely, so a working reproduction is effectively public even though no standalone attack tool is referenced. The practical risk is bounded by the narrow trigger conditions and by the fact that only the integrity of validated data is affected: downstream code receives a value that violates the declared type, which matters most where that value is later trusted for authorization, business logic, or type-dependent operations. No signals conflict; the main caveat is the absent EPSS figure.

Exploit ScenarioDerived

An application exposes an endpoint that validates attacker-supplied JSON into a Pydantic TypedDict or dataclass that has an aliased field and is configured with extra='allow'. The attacker submits the input containing BOTH the alias key (a well-formed value that passes validation) and the field's real name key (an unvalidated, type-violating value); the field-name entry is treated as extra data and overwrites the validated value, so downstream code receives data that does not match the declared type. The fix commit and GHSA advisory include test cases demonstrating this exact reproduction, but no standalone weaponized exploit is referenced.

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

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

Alert me

AnalysisAIv1 – Nov 20, 2026

Validation bypass in Pydantic V2 through 2.14.1 allows attackers to overwrite a validated aliased TypedDict or dataclass field with unvalidated data by supplying both the alias and the field's Python name in the same payload. The issue only affects applications that validate untrusted input into TypedDict or dataclass types with an aliased field and extras enabled via extra='allow' or extra_items; Pydantic BaseModel is not affected. Impact is integrity-only - returned data can fail to match the declared type - and no public exploit was identified at time of analysis.

RemediationAI

Upgrade Pydantic to 2.14.2, which contains the vendor fix (commit 34491f5328f168f14e3769cd5f0f83c0af0f4778) and is documented in GHSA-3r8g-cqwr-jr29. If an immediate upgrade is not possible, reduce exposure by removing aliases from affected TypedDict/dataclass fields, disabling extras (extra='ignore' or 'forbid', or avoiding extra_items for TypedDict), or rejecting payloads that contain both an alias and its underlying field name; each workaround changes accepted input and may break clients that legitimately send extra keys or alias-based data. Because exploitation requires a non-default configuration and impact is integrity-only, this is a normal monthly-maintenance priority rather than an emergency.

Affected VersionsENISA

Pydantic 2.0 <2.14.2

Affected Packages

euvd pydantic fix: 2.14.2

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

CVE-2026-133424 is an improper input validation flaw (CWE-20) in pydantic-core, the Rust validation engine behind Pydantic V2. In the TypedDict validator (typed_dict.rs) and the dataclass validator (dataclass.rs), validation runs in two passes: the first marks only the alias as used and stores the validated value under the real field name; the second treats the real field name as an unrecognized extra key. Because extras are stored in the same dictionary as fields - the returned dict for TypedDict and the instance __dict__ for dataclasses - the extra pass writes the unvalidated value over the validated one. This yields a validation bypass where output does not match the declared type. The authoritative assessment rates impact as integrity-only (C:N/I:L/A:N) and requires four conditions to align: a TypedDict or dataclass target, an aliased field, extras enabled, and a payload containing both the alias and the field name. The flaw is limited to Pydantic V2 through 2.14.1 and does not affect BaseModel, which stores extras separately.

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 3.7 LOW

Remote data submission (AV:N) with no auth to submit (PR:N), but the required non-default aliased-field plus extra='allow' configuration makes it AC:H; integrity-only impact (I:L, C/A:N).

3.1 AV:N/AC:H/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 20, 2026 - 09:02 EUVD
CVE Published
Nov 20, 2026 - 07:33 cve.org
MEDIUM 6.3

DescriptionCVE.org

When extra data is allowed, providing both the alias and the name of an aliased TypedDict or dataclass field makes the unvalidated value (provided under the name) overwrite the validated one (provided under the alias), resulting in validated data not matching the declared type.

Extra items are stored in the same dictionary as the fields (the returned dictionary for TypedDict, the instance __dict__ for dataclasses). As only the alias is marked as used, the field name is treated as an extra item, and its unvalidated value overrides the validated one. The TypedDict validator (pydantic-core/src/validators/typed_dict.rs) and the dataclass validator (pydantic-core/src/validators/dataclass.rs) share this logic.

The issue was fixed in commit 34491f5328f168f14e3769cd5f0f83c0af0f4778.

Impact: validation bypass, as data returned by validation doesn't match the declared type. Affected are applications validating untrusted data into TypedDict or dataclass types with aliased fields and extra data allowed (with extra='allow', or with the extra_items argument for TypedDict), using Pydantic V2 (up to and including 2.14.1).

Pydantic models (BaseModel) are not affected, as extra data is stored separately from fields.

Threat Intelligence Overview

EPSS Score
0.7%
Top 46% exploitable
Prevalence
High
Pydantic is among the most widely deployed Python data-validation libraries
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

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.7%
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
High
Technical Impact
Partial

Priority Score

33
Low Medium High Critical
KEV: 0
EPSS: +1
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