Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit untrusted data to Pydantic V1 dataclass validation
-
ExploitInject __pydantic_initialised__ key to force already-validated state
-
ExecutionDeliver malformed field values that skip type checks
-
ImpactDownstream 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 |
| 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 ( |
| 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (Pydantic).
CVSS VectorVendor: Pydantic
Lifecycle Timeline
2DescriptionCVE.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):
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):
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__'):
returnThe 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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w
Pydantic AI versions 0.0.26 through 1.55.x contain a server-side request forgery vulnerability in URL download functiona
Regular expression denial of service in Pydanic < 2.4.0, < 1.10.13 allows remote attackers to cause denial of service vi
HTTPX2's SOCKS5 proxy implementation omits TLS negotiation for WebSocket Secure (wss://) origins, exposing the full WebS
Cross-site request forgery in Pydantic AI's development web chat UI allows any website a developer happens to visit whil
Concurrency slot exhaustion in Pydantic AI 2.10.0 through 2.52.x lets streamed model requests permanently occupy slots i
Denial of service in Pydantic AI Harness (pydantic-ai-harness) 0.4.0 through 0.69.0 lets attacker-influenced tool output
Memory exhaustion via unbounded decompression in HTTPX2 (all versions before 2.12.0) allows any HTTP server the client c
Pydantic is a data validation and settings management using Python type hinting. Rated high severity (CVSS 7.5), this vu
Quadratic-time validation of untrusted ISO 8601 duration strings in Pydantic V1 lets remote attackers exhaust CPU by sub
Denial of service in Pydantic V1 arises when an application validates attacker-supplied lists into a field constrained w
Server-Side Request Forgery in Pydantic AI (versions 1.56.0-1.101.0, 2.0.0b1, 2.0.0b2) allows unauthenticated network at
EUVD-2026-130375
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB