{"vuln_id":"CVE-2026-133429","aliases":["GHSA-qpmf-fgh3-ff25"],"description":"pydantic: pydantic: Input validation bypass via unvalidated extra keys in JSON data","published_at":"2026-11-20T07:32:01Z","modified_at":"2026-11-20T18:18:48.410000Z","first_seen_at":"2026-11-21T19:15:15.261418Z","severity":"medium","severity_source":"nvd","cvss_score":6.3,"cvss_vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cwe":["CWE-1287","CWE-20"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00865,"epss_percentile":0.59553,"nvd_status":"Received","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-133429"},"matched_alias":null,"items":[{"id":9668,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-133429: 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__, resul…","summary":"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].\n\nThe 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.\n\nThe issue was fixed in commit 4c65dbda9970a488e2ff21c8693fc6f6d70a3358.\n\nImpact: 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.\n\nPython mode validation isn't affected.\n\nReferences:\nhttps://github.com/pydantic/pydantic/blob/v2.13.5/pydantic-core/src/validators/model_fields.rs#L540\nhttps://github.com/pydantic/pydantic/blob/v2.13.5/pydantic-core/src/validators/model_fields.rs#L605-L623\nhttps://github.com/pydantic/pydantic/commit/4c65dbda9970a488e2ff21c8693fc6f6d70a3358\nhttps://github.com/pydantic/pydantic/security/advisories/GHSA-qpmf-fgh3-ff25","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-133429","published_at":"2026-11-20T08:18:32.730000Z","updated_at":"2026-11-20T18:18:48.410000Z","fetched_at":"2026-11-21T19:15:31.485211Z","severity":"medium","cvss_score":6.3,"epss":0.00865,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-133429","vuln_ids":["CVE-2026-133429","GHSA-QPMF-FGH3-FF25"],"tags":["CWE-20"],"cluster_id":556,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/9668","html":"https://vulnwatch.ve1ve2.com/item/9668"}},{"id":817,"source":{"id":"redhat","name":"Red Hat Security Data API"},"title":"CVE-2026-133429: pydantic: pydantic: Input validation bypass via unvalidated extra keys in JSON data","summary":"pydantic: pydantic: Input validation bypass via unvalidated extra keys in JSON data","url":"https://access.redhat.com/security/cve/cve-2026-133429","published_at":"2026-11-20T07:32:01Z","updated_at":null,"fetched_at":"2026-11-21T19:15:08.892866Z","severity":"medium","cvss_score":6.3,"epss":0.00865,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"redhat","product":null,"vuln_id":"CVE-2026-133429","vuln_ids":["CVE-2026-133429","GHSA-QPMF-FGH3-FF25"],"tags":["redhat"],"cluster_id":556,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/817","html":"https://vulnwatch.ve1ve2.com/item/817"}}]}