{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-133424","id":"CVE-2026-133424","title":"Validation bypass of aliased fields in TypedDict and dataclasses allowing extra data","description":"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.\n\nExtra items are stored in the same dictionary as the fields (the returned dictionary for TypedDict, the instance __dict_","descriptionLong":"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.\n\nExtra 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.\n\nThe issue was fixed in commit 34491f5328f168f14e3769cd5f0f83c0af0f4778.\n\nImpact: 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).\n\nPydantic models (BaseModel) are not affected, as extra data is stored separately from fields.","published":"2026-11-20T07:33:18.111Z","updated":"2026-11-20T07:33:18.111Z","reserved":"2026-11-19T19:39:18.090Z","status":"PUBLISHED","rejected":false,"assigner":"Pydantic","metric":{"version":"4.0","score":6.3,"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","rating":"medium","source":"Pydantic"},"metrics":[{"version":"4.0","score":6.3,"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","rating":"medium","source":"Pydantic"}],"rating":"medium","products":["pydantic"],"affectedProducts":[{"vendor":"pydantic","product":"pydantic","defaultStatus":"unaffected","versions":[{"version":"2.0","lessThan":"2.14.2","status":"affected","versionType":"python"}],"platforms":[]}],"packages":[],"cwes":["CWE-20"],"aliases":[],"references":[{"url":"https://github.com/pydantic/pydantic/security/advisories/GHSA-3r8g-cqwr-jr29","tags":["vendor-advisory"]},{"url":"https://github.com/pydantic/pydantic/blob/becee9cc0ef8132e854762448fde76aa56608c6b/pydantic-core/src/validators/typed_dict.rs#L204-L225","tags":[]},{"url":"https://github.com/pydantic/pydantic/blob/becee9cc0ef8132e854762448fde76aa56608c6b/pydantic-core/src/validators/dataclass.rs#L215-L342","tags":[]},{"url":"https://github.com/pydantic/pydantic/commit/34491f5328f168f14e3769cd5f0f83c0af0f4778","tags":[]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":null,"epssPercentile":null,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-133424","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-133424","ok":false,"note":"not found"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-133424","ok":false,"note":"no open-source package data"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-133424","ok":false,"note":"no score yet"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}