CVE-2026-133424 (GCVE-0-2026-133424)

Vulnerability from cvelistv5 – Published: 2026-11-20 07:33 – Updated: 2026-11-20 17:20
VLAI
Title
Validation bypass of aliased fields in TypedDict and dataclasses allowing extra data
Summary
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. Extra 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. The issue was fixed in commit 34491f5328f168f14e3769cd5f0f83c0af0f4778. Impact: 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). Pydantic models (BaseModel) are not affected, as extra data is stored separately from fields.
SSVC
Exploitation: none Automatable: no Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-20 17:20 UTC
CWE
  • CWE-20 - Improper Input Validation
Assigner
Pydantic CNA
CNA scorecard – unranked: 9 records in the last 180 days, 10 needed details
Impacted products
Vendor Product Version CPE status
pydantic pydantic Affected: 2.0 , < 2.14.2 (python)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2026-133424",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-11-20T17:20:13.958637Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-11-20T17:20:23.640Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "collectionURL": "https://pypi.org",
          "defaultStatus": "unaffected",
          "packageName": "pydantic",
          "product": "pydantic",
          "repo": "https://github.com/pydantic/pydantic",
          "vendor": "pydantic",
          "versions": [
            {
              "lessThan": "2.14.2",
              "status": "affected",
              "version": "2.0",
              "versionType": "python"
            }
          ]
        }
      ],
      "credits": [
        {
          "lang": "en",
          "type": "finder",
          "value": "schecthellraiser606"
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "supportingMedia": [
            {
              "base64": false,
              "type": "text/html",
              "value": "\u003ch3\u003eSummary\u003c/h3\u003e\n\u003cp\u003eWhen extra data is allowed, providing both the alias and the name of an aliased \u003ccode\u003eTypedDict\u003c/code\u003e 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.\u003c/p\u003e\n\u003ch3\u003eDetails\u003c/h3\u003e\n\u003cp\u003eExtra items are stored in the same dictionary as the fields (the returned dictionary for \u003ccode\u003eTypedDict\u003c/code\u003e, the instance \u003ccode\u003e__dict__\u003c/code\u003e 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 (\u003ca href=\"https://github.com/pydantic/pydantic/blob/becee9cc0ef8132e854762448fde76aa56608c6b/pydantic-core/src/validators/typed_dict.rs#L204-L225\"\u003e\u003ccode\u003epydantic-core/src/validators/typed_dict.rs\u003c/code\u003e\u003c/a\u003e):\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-rust\"\u003e// First pass, for each field:\nused_keys.insert(lookup_path.first_key()); // only the alias `b` is marked as used\n// ...\noutput_dict.set_item(\u0026amp;field.name, value)?; // the validated value is stored under `a`\n\n// Second pass, for each input key:\nif self.used_keys.contains(cow.as_ref()) {\n    continue; // `a` isn\u0027t marked as used\n}\n// ...\nExtraBehavior::Allow =\u0026gt; {\n    // the extra value is stored under `a`, overwriting the validated value:\n    self.output_dict.set_item(py_key, value.to_object(self.py)?)?;\n}\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eDataclasses have the same logic, in \u003ca href=\"https://github.com/pydantic/pydantic/blob/becee9cc0ef8132e854762448fde76aa56608c6b/pydantic-core/src/validators/dataclass.rs#L215-L342\"\u003e\u003ccode\u003epydantic-core/src/validators/dataclass.rs\u003c/code\u003e\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eThe issue was fixed in commit \u003ca href=\"https://github.com/pydantic/pydantic/commit/34491f5328f168f14e3769cd5f0f83c0af0f4778\"\u003e34491f5328f168f14e3769cd5f0f83c0af0f4778\u003c/a\u003e.\u003c/p\u003e\n\u003ch3\u003eImpact\u003c/h3\u003e\n\u003cp\u003eValidation bypass: data returned by validation doesn\u0027t match the declared type. Affected are applications validating untrusted data into \u003ccode\u003eTypedDict\u003c/code\u003e or dataclass types with aliased fields and extra data allowed (with \u003ccode\u003eextra=\u0027allow\u0027\u003c/code\u003e, or with the \u003ccode\u003eextra_items\u003c/code\u003e argument for \u003ccode\u003eTypedDict\u003c/code\u003e), using Pydantic V2 (up to and including 2.14.1).\u003c/p\u003e\n\u003cp\u003ePydantic models (\u003ccode\u003eBaseModel\u003c/code\u003e) are not affected, as extra data is stored separately from fields.\u003c/p\u003e"
            }
          ],
          "value": "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\u0027t match the declared type. Affected are applications validating untrusted data into TypedDict or dataclass types with aliased fields and extra data allowed (with extra=\u0027allow\u0027, 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."
        }
      ],
      "metrics": [
        {
          "cvssV4_0": {
            "baseScore": 6.3,
            "baseSeverity": "MEDIUM",
            "vectorString": "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",
            "version": "4.0"
          }
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-20",
              "description": "CWE-20: Improper Input Validation",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-20T07:33:18.111Z",
        "orgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
        "shortName": "Pydantic"
      },
      "references": [
        {
          "tags": [
            "vendor-advisory"
          ],
          "url": "https://github.com/pydantic/pydantic/security/advisories/GHSA-3r8g-cqwr-jr29"
        },
        {
          "url": "https://github.com/pydantic/pydantic/blob/becee9cc0ef8132e854762448fde76aa56608c6b/pydantic-core/src/validators/typed_dict.rs#L204-L225"
        },
        {
          "url": "https://github.com/pydantic/pydantic/blob/becee9cc0ef8132e854762448fde76aa56608c6b/pydantic-core/src/validators/dataclass.rs#L215-L342"
        },
        {
          "url": "https://github.com/pydantic/pydantic/commit/34491f5328f168f14e3769cd5f0f83c0af0f4778"
        }
      ],
      "source": {
        "advisory": "GHSA-3r8g-cqwr-jr29",
        "discovery": "UNKNOWN"
      },
      "title": "Validation bypass of aliased fields in TypedDict and dataclasses allowing extra data"
    }
  },
  "cveMetadata": {
    "assignerOrgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
    "assignerShortName": "Pydantic",
    "cveId": "CVE-2026-133424",
    "datePublished": "2026-11-20T07:33:18.111Z",
    "dateReserved": "2026-11-19T19:39:18.090Z",
    "dateUpdated": "2026-11-20T17:20:23.640Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-133424",
      "date": "2026-11-20",
      "epss": "0.00709",
      "percentile": "0.54397"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "collectionURL": "https://pypi.org",
                "defaultStatus": "unaffected",
                "packageName": "pydantic",
                "product": "pydantic",
                "repo": "https://github.com/pydantic/pydantic",
                "vendor": "pydantic",
                "versions": [
                  {
                    "lessThan": "2.14.2",
                    "status": "affected",
                    "version": "2.0",
                    "versionType": "python"
                  }
                ]
              }
            ],
            "source": "7cec5f2f-3032-4006-8740-31f605ffab5f"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "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\u0027t match the declared type. Affected are applications validating untrusted data into TypedDict or dataclass types with aliased fields and extra data allowed (with extra=\u0027allow\u0027, 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."
          }
        ],
        "id": "CVE-2026-133424",
        "lastModified": "2026-11-20T18:18:47.980",
        "metrics": {
          "cvssMetricV40": [
            {
              "cvssData": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "NETWORK",
                "availabilityRequirement": "NOT_DEFINED",
                "baseScore": 6.3,
                "baseSeverity": "MEDIUM",
                "confidentialityRequirement": "NOT_DEFINED",
                "exploitMaturity": "NOT_DEFINED",
                "integrityRequirement": "NOT_DEFINED",
                "modifiedAttackComplexity": "NOT_DEFINED",
                "modifiedAttackRequirements": "NOT_DEFINED",
                "modifiedAttackVector": "NOT_DEFINED",
                "modifiedPrivilegesRequired": "NOT_DEFINED",
                "modifiedSubAvailabilityImpact": "NOT_DEFINED",
                "modifiedSubConfidentialityImpact": "NOT_DEFINED",
                "modifiedSubIntegrityImpact": "NOT_DEFINED",
                "modifiedUserInteraction": "NOT_DEFINED",
                "modifiedVulnAvailabilityImpact": "NOT_DEFINED",
                "modifiedVulnConfidentialityImpact": "NOT_DEFINED",
                "modifiedVulnIntegrityImpact": "NOT_DEFINED",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "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",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "LOW",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "source": "7cec5f2f-3032-4006-8740-31f605ffab5f",
              "type": "Secondary"
            }
          ],
          "ssvcV203": [
            {
              "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "ssvcData": {
                "id": "CVE-2026-133424",
                "options": [
                  {
                    "exploitation": "none"
                  },
                  {
                    "automatable": "no"
                  },
                  {
                    "technicalImpact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-11-20T17:20:13.958637Z",
                "version": "2.0.3"
              }
            }
          ]
        },
        "published": "2026-11-20T08:18:32.313",
        "references": [
          {
            "source": "7cec5f2f-3032-4006-8740-31f605ffab5f",
            "url": "https://github.com/pydantic/pydantic/blob/becee9cc0ef8132e854762448fde76aa56608c6b/pydantic-core/src/validators/dataclass.rs#L215-L342"
          },
          {
            "source": "7cec5f2f-3032-4006-8740-31f605ffab5f",
            "url": "https://github.com/pydantic/pydantic/blob/becee9cc0ef8132e854762448fde76aa56608c6b/pydantic-core/src/validators/typed_dict.rs#L204-L225"
          },
          {
            "source": "7cec5f2f-3032-4006-8740-31f605ffab5f",
            "url": "https://github.com/pydantic/pydantic/commit/34491f5328f168f14e3769cd5f0f83c0af0f4778"
          },
          {
            "source": "7cec5f2f-3032-4006-8740-31f605ffab5f",
            "url": "https://github.com/pydantic/pydantic/security/advisories/GHSA-3r8g-cqwr-jr29"
          }
        ],
        "sourceIdentifier": "7cec5f2f-3032-4006-8740-31f605ffab5f",
        "vulnStatus": "Received",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "CWE-20"
              }
            ],
            "source": "7cec5f2f-3032-4006-8740-31f605ffab5f",
            "type": "Secondary"
          }
        ]
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-11-21T03:02:35+00:00",
      "cve": "CVE-2026-133424",
      "id": "CVE-2026-133424",
      "initial_release_date": "2026-11-20T07:33:18.111000+00:00",
      "product_status:known_affected": "133",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "pydantic: pydantic: Validation bypass via aliased fields",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-133424.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.