Skip to main content

Pydantic CVE-2026-133429

| EUVDEUVD-2026-131225 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 crafted JSON to validation endpoint
  2. Delivery
    Include extra keys violating declared key pattern
  3. Exploit
    Bypass key-type check in JSON-mode validator
  4. Execution
    Unvalidated keys stored in __pydantic_extra__
  5. Impact
    Downstream logic trusts malformed keys

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 a specific non-default deployment: the target must validate untrusted JSON via Pydantic's JSON mode (e.g. model_validate_json) into a model configured with extra='allow' AND a constrained key type annotated on __pydantic_extra__ (such as dict[Annotated[str, Field(pattern=...)], int]), running an affected version from 2.13.0 up to but excluding 2.14.2. Limiting factors that reduce real-world exposure: Python-mode validation is NOT affected (only the Rust JSON-iteration path validate_json_by_iteration() mishandles keys); models without extra='allow' or without a constrained extra-key annotation are unaffected; and impact is limited to the integrity of the returned extra-key data, with exploitability dependent on whether downstream code actually relies on the declared key constraint.

Impact

This is a genuine but moderate-priority issue, not a high-urgency emergency. The vendor CVSS 4.0 score of 6.3 (medium) reflects the real shape of the flaw: network attack vector (AV:N) and low attack complexity (AC:L) with no privileges or user interaction, but constrained by an attack requirement (AT:P) - the target application must be running a specific non-default configuration - and limited to a single low integrity impact (VI:L) with no confidentiality or availability consequence. The vuln.today decision label is 'this_month', consistent with a non-critical fix-on-normal-cadence posture. No CISA KEV listing is present, so there is no confirmed active exploitation; no EPSS score was supplied in the input, so exploitation probability cannot be quantified here; and no working exploit code was provided - only the GHSA advisory and the fix commit, which is a patch rather than a weaponized PoC. The signals are therefore internally consistent (medium severity, no active-exploitation indicators, narrow preconditions) with no major conflicts. The one metadata conflict worth flagging is the 'Authentication Bypass' tag: the advisory and CWE-20 describe a type/validation bypass of extra-data keys, not an authentication bypass, and there is no auth mechanism involved. Treat this as a data-integrity correctness bug to remediate during normal patching, not a drop-everything priority.

Exploit ScenarioDerived

An application validates untrusted JSON into a Pydantic model configured with extra='allow' and a constrained extra-key type (e.g. __pydantic_extra__ as dict[Annotated[str, Field(pattern=r'^x_')], int]). An attacker submits JSON containing extra keys that violate the declared key pattern; because JSON-mode validation only checks the extra values and stores the keys verbatim, the invalid keys pass through and end up in __pydantic_extra__, and any downstream code that trusts the declared key constraint receives data that does not match the declared type. No public exploit code was identified; the attack is low-complexity but requires the specific vulnerable configuration.

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

Pydantic 2.13.0 through 2.14.1 (excluding 2.14.2) fails to validate the keys of extra data when untrusted JSON is parsed with the Rust-backed JSON path, so values stored in __pydantic_extra__ can violate the key type declared on the model - for example dict[Annotated[str, Field(pattern=r'^x_')], int]. Only applications that call JSON-mode validation such as model_validate_json() on models configured with extra='allow' and a constrained extra-key annotation are exposed; Python-mode validation is not affected, and the impact is limited to the integrity of the returned extra-key data rather than code execution or data disclosure. No KEV listing and no public exploit code were identified at time of analysis, and the vendor fixed the flaw in 2.14.2 via commit 4c65dbda9970a488e2ff21c8693fc6f6d70a3358.

RemediationAI

Upgrade to pydantic 2.14.2 or later, the version in which the vendor fixed the issue (vendor-released patch: 2.14.2); the advisory is at https://github.com/pydantic/pydantic/security/advisories/GHSA-qpmf-fgh3-ff25 and the fix commit is https://github.com/pydantic/pydantic/commit/4c65dbda9970a488e2ff21c8693fc6f6d70a3358. Until the upgrade can be shipped, the exposure can be removed at the configuration level rather than mitigated generically: switch the affected ingestion path from JSON-mode validation (model_validate_json and similar) to Python-mode validation of an already-parsed dict, which the vendor confirms is not affected; or drop the key-type annotation on __pydantic_extra__ and enforce the key pattern explicitly in application code after validation, which restores the intended constraint at the cost of moving validation out of the model; or, if the model does not genuinely need to accept unknown fields, set extra to 'ignore' or 'forbid' so no extra keys are stored, at the cost of rejecting or silently dropping fields the model previously tolerated. Re-validating or rejecting any stored __pydantic_extra__ key data produced before the upgrade is advisable where downstream logic assumes the key constraint held.

Affected VersionsENISA

Pydantic 2.13.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

Pydantic is a Python data-validation library whose performance-critical validation runs in the Rust extension module pydantic-core. The affected code is validate_json_by_iteration() in pydantic-core/src/validators/model_fields.rs, the routine used when JSON input is validated into a model. In the ExtraBehavior::Allow branch, the JSON object's key is materialized as a Python string via new_py_string() and inserted directly into the model's extra-data dictionary, and only the corresponding value is passed to self.extras_validator. Because no key validator runs on that path, the key constraint carried by __pydantic_extra__ (e.g. an Annotated[str, Field(pattern=...)] key type) is never applied, which the vendor classifies as CWE-20 improper input validation manifesting as a validation bypass: the validated model claims a type it does not actually satisfy. The equivalent Python-mode code path performs full validation, so it is unaffected. The upstream fix (commit 4c65dbda9970a488e2ff21c8693fc6f6d70a3358) reworks this logic to route JSON input through a lookup tree (offer_field_input, LookupPath) and adds the indexmap dependency, so extra keys are handled consistently with fields rather than stored verbatim.

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

Crafted JSON is sent remotely without privileges or interaction (AV:N/AC:L/PR:N/UI:N); only data integrity of extra keys is affected (I:L), with no confidentiality or availability impact; the non-default-config precondition is not captured by 3.1 base metrics.

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

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:32 cve.org
MEDIUM 6.3

DescriptionCVE.org

When validating JSON data into a model allowing extra data, the keys of extra data aren't validated against the key type annotated on __pydantic_extra__, resulting in extra data not matching the declared type. This is the case if you define __pydantic_extra__ as e.g. dict[Annotated[str, Field(pattern=r'^x_')], int].

The validate_json_by_iteration() method (in pydantic-core/src/validators/model_fields.rs), used to validate JSON data into models, only validates the values of extra data, and stores the keys as is.

The issue was fixed in commit 4c65dbda9970a488e2ff21c8693fc6f6d70a3358.

Impact: validation bypass, as extra data returned by validation doesn't match the declared type. Affected are applications validating untrusted JSON data into models allowing extra data (with extra='allow'), with a key type annotated on __pydantic_extra__ (e.g. dict[Annotated[str, Field(pattern=...)], int]), using Pydantic from 2.13.0 up to (but excluding) 2.14.2.

Python mode validation isn't affected.

Threat Intelligence Overview

EPSS Score
0.7%
Top 46% exploitable
Prevalence
High
Pydantic is a core dependency across a large share of Python web/API deployments
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.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