CVE-2026-133429Validation bypass of extra data keys in JSON model validation
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.
What to do
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | pydantic | Fix pending | UBUNTU-CVE-2026-133429 | |
| Ubuntu 26.04 | pydantic | Under investigation | UBUNTU-CVE-2026-133429 | |
| Ubuntu 24.04 | pydantic | Under investigation | UBUNTU-CVE-2026-133429 | |
| Ubuntu 22.04 | pydantic | Fix pending | UBUNTU-CVE-2026-133429 | |
| Ubuntu 20.04 | pydantic | Fix pending | UBUNTU-CVE-2026-133429 | |
| Debian 14 | pydantic | Fix pending | DEBIAN-CVE-2026-133429 | |
| Red Hat Enterprise Linux 10 | linux-mcp-server | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | linux-mcp-server | Fix pending Fix deferred |
What the vendor says
As published in the CVE record by Pydantic, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- pydantic: affected: 2.13.0 to before 2.14.2; fixed in
2.14.2
Vendor advisories:
References
- https://github.com/pydantic/pydantic/security/advisories/GHSA-qpmf-fgh3-ff25
- https://github.com/pydantic/pydantic/blob/v2.13.5/pydantic-core/src/validators/model_fields.rs#L540
- https://github.com/pydantic/pydantic/blob/v2.13.5/pydantic-core/src/validators/model_fields.rs#L605-L623
- https://github.com/pydantic/pydantic/commit/4c65dbda9970a488e2ff21c8693fc6f6d70a3358
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.