{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-133276","id":"CVE-2026-133276","title":"Validation bypass of Pydantic V1 dataclasses allowing extra data","description":"### Summary\n\nWhen 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.\n\n### Details\n\nWhen extra data is allowed, the `__init__()` method of Pydantic V1 dataclasses stores all the provided keyword arguments in the instance `__dict__` before validation ([`pyda","descriptionLong":"### Summary\n\nWhen 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.\n\n### Details\n\nWhen 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`](https://github.com/pydantic/pydantic/blob/v1.10.26/pydantic/dataclasses.py#L295-L298)):\n\n```python\nelif config.extra == Extra.allow:\n    for k, v in kwargs.items():\n        self.__dict__.setdefault(k, v)\n    init(self, *args, **{k: v for k, v in kwargs.items() if k in self.__dataclass_fields__})\n```\n\nA `__pydantic_initialised__` keyword argument thus overrides the internal flag used to skip validation of already validated instances ([`pydantic/dataclasses.py`](https://github.com/pydantic/pydantic/blob/v1.10.26/pydantic/dataclasses.py#L430-L434)):\n\n```python\ndef _dataclass_validate_values(self: 'Dataclass') -> None:\n    # validation errors can occur if this function is called twice on an already initialised dataclass.\n    # for example if Extra.forbid is enabled, it would consider __pydantic_initialised__ an invalid extra property\n    if getattr(self, '__pydantic_initialised__'):\n        return\n```\n\nThe issue was fixed in commit https://github.com/pydantic/pydantic/commit/b26913fe6, published in V1.10.27.\n\nIf you are relying on the `pydantic.v1` namespace in Pydantic V2, upgrade to [V2.14.2](https://github.com/pydantic/pydantic/releases/tag/v2.14.2) or later.\n\n### Impact\n\nValidation 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`).","published":"2026-11-19T16:15:01.429Z","updated":"2026-11-19T16:15:01.429Z","reserved":"2026-11-19T16:11:10.703Z","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":"1.10.0","lessThan":"1.10.26","status":"affected","versionType":"python"}],"platforms":[]}],"packages":[],"cwes":["CWE-20"],"aliases":[],"references":[{"url":"https://github.com/pydantic/pydantic/security/advisories/GHSA-r49w-vh47-r4hf","tags":["vendor-advisory"]},{"url":"https://github.com/pydantic/pydantic/blob/v1.10.26/pydantic/dataclasses.py#L295-L298","tags":[]},{"url":"https://github.com/pydantic/pydantic/blob/v1.10.26/pydantic/dataclasses.py#L430-L434","tags":[]},{"url":"https://github.com/pydantic/pydantic/commit/b26913fe6","tags":[]},{"url":"https://github.com/pydantic/pydantic/releases/tag/v2.14.2","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-133276","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-133276","ok":false,"note":"not found"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-133276","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-133276","ok":false,"note":"no score yet"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}