{"api_version":"1","generated_at":"2026-11-20T19:16:08+00:00","cve":"CVE-2026-133422","urls":{"html":"https://cve.report/CVE-2026-133422","api":"https://cve.report/api/cve/CVE-2026-133422.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-133422","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-133422"},"summary":{"title":"Quadratic time unique_items list validation in Pydantic V1","description":"Validating an untrusted list into a field constrained with unique_items=True with Pydantic V1 takes quadratic time: an input of a few hundred kilobytes takes seconds to validate.\n\nThe ConstrainedList.unique_items_validator validator (in pydantic/types.py) checks each item against all the following ones. For a list with no duplicates (the common, valid case), this results in a quadratic number of comparisons.\n\nThe issue was fixed in commit 6ec75e57f277a820ec583e601167f25fe8dc7c87. Users relying on the pydantic.v1 namespace in Pydantic V2 should upgrade to 2.14.2 or later.\n\nImpact: denial of service through validation of untrusted input. Affected are applications validating untrusted lists into fields constrained with unique_items=True (using conlist() or Field()).\n\nThe fix only applies to lists of builtin scalar types (int, float, str, bytes, bool and None), for which duplicates can be detected in linear time. Lists of other types (e.g. models or dictionaries) are still checked in quadratic time, as their items aren't guaranteed to be hashable: bound their size using the max_items constraint.\n\nPydantic V2 models are not affected.","state":"PUBLISHED","assigner":"Pydantic","published_at":"2026-11-20 08:18:32","updated_at":"2026-11-20 18:18:47"},"problem_types":["CWE-407","CWE-407 CWE-407: Inefficient Algorithmic Complexity"],"metrics":[{"version":"4.0","source":"7cec5f2f-3032-4006-8740-31f605ffab5f","type":"Secondary","score":"6.9","severity":"MEDIUM","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/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","data":{"version":"4.0","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/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","baseScore":6.9,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"LOW","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","confidentialityRequirement":"NOT_DEFINED","integrityRequirement":"NOT_DEFINED","availabilityRequirement":"NOT_DEFINED","modifiedAttackVector":"NOT_DEFINED","modifiedAttackComplexity":"NOT_DEFINED","modifiedAttackRequirements":"NOT_DEFINED","modifiedPrivilegesRequired":"NOT_DEFINED","modifiedUserInteraction":"NOT_DEFINED","modifiedVulnConfidentialityImpact":"NOT_DEFINED","modifiedVulnIntegrityImpact":"NOT_DEFINED","modifiedVulnAvailabilityImpact":"NOT_DEFINED","modifiedSubConfidentialityImpact":"NOT_DEFINED","modifiedSubIntegrityImpact":"NOT_DEFINED","modifiedSubAvailabilityImpact":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED"}},{"version":"4.0","source":"CNA","type":"DECLARED","score":"6.9","severity":"MEDIUM","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","data":{"baseScore":6.9,"baseSeverity":"MEDIUM","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","version":"4.0"}}],"references":[{"url":"https://github.com/pydantic/pydantic/releases/tag/v2.14.2","name":"https://github.com/pydantic/pydantic/releases/tag/v2.14.2","refsource":"7cec5f2f-3032-4006-8740-31f605ffab5f","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/pydantic/pydantic/commit/6ec75e57f277a820ec583e601167f25fe8dc7c87","name":"https://github.com/pydantic/pydantic/commit/6ec75e57f277a820ec583e601167f25fe8dc7c87","refsource":"7cec5f2f-3032-4006-8740-31f605ffab5f","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/pydantic/pydantic/security/advisories/GHSA-49g6-96jj-f7r9","name":"https://github.com/pydantic/pydantic/security/advisories/GHSA-49g6-96jj-f7r9","refsource":"7cec5f2f-3032-4006-8740-31f605ffab5f","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/pydantic/pydantic/blob/v1.10.26/pydantic/types.py#L612-L620","name":"https://github.com/pydantic/pydantic/blob/v1.10.26/pydantic/types.py#L612-L620","refsource":"7cec5f2f-3032-4006-8740-31f605ffab5f","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-133422","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-133422","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"pydantic","product":"pydantic","version":"affected 1.9.0 1.10.26 python","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"CNA","value":"iamibi","lang":"en"}],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"metrics":[{"other":{"content":{"id":"CVE-2026-133422","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","timestamp":"2026-11-20T17:20:53.119210Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2026-11-20T17:21:01.909Z","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":[{"lessThanOrEqual":"1.10.26","status":"affected","version":"1.9.0","versionType":"python"}]}],"credits":[{"lang":"en","type":"finder","value":"iamibi"}],"descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<h3>Summary</h3>\n<p>Validating an untrusted list into a field constrained with <code>unique_items=True</code> with Pydantic V1 takes quadratic time: an input of a few hundred kilobytes takes seconds to validate.</p>\n<h3>Details</h3>\n<p>The <a href=\"https://github.com/pydantic/pydantic/blob/v1.10.26/pydantic/types.py#L612-L620\"><code>ConstrainedList.unique_items_validator</code></a> validator (in <code>pydantic/types.py</code>) checks each item against all the following ones:</p>\n<pre><code class=\"language-python\">@classmethod\ndef unique_items_validator(cls, v: 'Optional[List[T]]') -&gt; 'Optional[List[T]]':\n    if v is None:\n        return None\n\n    for i, value in enumerate(v, start=1):\n        if value in v[i:]:\n            raise errors.ListUniqueItemsError()\n\n    return v\n</code></pre>\n<p>For a list with no duplicates (the common, valid case), this results in a quadratic number of comparisons.</p>\n<p>The issue was fixed in commit <a href=\"https://github.com/pydantic/pydantic/commit/6ec75e57f277a820ec583e601167f25fe8dc7c87\">6ec75e57f277a820ec583e601167f25fe8dc7c87</a>.</p>\n<p>If you are relying on the <code>pydantic.v1</code> namespace in Pydantic V2, upgrade to <a href=\"https://github.com/pydantic/pydantic/releases/tag/v2.14.2\">V2.14.2</a> or later.</p>\n<h3>Impact</h3>\n<p>Denial of service through validation of untrusted input. Affected are applications validating untrusted lists into fields constrained with <code>unique_items=True</code> (using <code>conlist()</code> or <code>Field()</code>).</p>\n<p>The fix only applies to lists of builtin scalar types (<code>int</code>, <code>float</code>, <code>str</code>, <code>bytes</code>, <code>bool</code> and <code>None</code>), for which duplicates can be detected in linear time. Lists of other types (e.g. models or dictionaries) are still checked in quadratic time, as their items aren't guaranteed to be hashable: bound their size using the <code>max_items</code> constraint.</p>\n<p>Pydantic V2 models are not affected.</p>"}],"value":"Validating an untrusted list into a field constrained with unique_items=True with Pydantic V1 takes quadratic time: an input of a few hundred kilobytes takes seconds to validate.\n\nThe ConstrainedList.unique_items_validator validator (in pydantic/types.py) checks each item against all the following ones. For a list with no duplicates (the common, valid case), this results in a quadratic number of comparisons.\n\nThe issue was fixed in commit 6ec75e57f277a820ec583e601167f25fe8dc7c87. Users relying on the pydantic.v1 namespace in Pydantic V2 should upgrade to 2.14.2 or later.\n\nImpact: denial of service through validation of untrusted input. Affected are applications validating untrusted lists into fields constrained with unique_items=True (using conlist() or Field()).\n\nThe fix only applies to lists of builtin scalar types (int, float, str, bytes, bool and None), for which duplicates can be detected in linear time. Lists of other types (e.g. models or dictionaries) are still checked in quadratic time, as their items aren't guaranteed to be hashable: bound their size using the max_items constraint.\n\nPydantic V2 models are not affected."}],"metrics":[{"cvssV4_0":{"baseScore":6.9,"baseSeverity":"MEDIUM","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-407","description":"CWE-407: Inefficient Algorithmic Complexity","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-20T07:33:35.498Z","orgId":"7cec5f2f-3032-4006-8740-31f605ffab5f","shortName":"Pydantic"},"references":[{"tags":["vendor-advisory"],"url":"https://github.com/pydantic/pydantic/security/advisories/GHSA-49g6-96jj-f7r9"},{"url":"https://github.com/pydantic/pydantic/blob/v1.10.26/pydantic/types.py#L612-L620"},{"url":"https://github.com/pydantic/pydantic/commit/6ec75e57f277a820ec583e601167f25fe8dc7c87"},{"url":"https://github.com/pydantic/pydantic/releases/tag/v2.14.2"}],"source":{"advisory":"GHSA-49g6-96jj-f7r9","discovery":"UNKNOWN"},"title":"Quadratic time unique_items list validation in Pydantic V1"}},"cveMetadata":{"assignerOrgId":"7cec5f2f-3032-4006-8740-31f605ffab5f","assignerShortName":"Pydantic","cveId":"CVE-2026-133422","datePublished":"2026-11-20T07:33:35.498Z","dateReserved":"2026-11-19T19:33:36.828Z","dateUpdated":"2026-11-20T17:21:01.909Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-20 08:18:32","lastModifiedDate":"2026-11-20 18:18:47","problem_types":["CWE-407","CWE-407 CWE-407: Inefficient Algorithmic Complexity"],"metrics":{"cvssMetricV40":[{"source":"7cec5f2f-3032-4006-8740-31f605ffab5f","type":"Secondary","cvssData":{"version":"4.0","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/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","baseScore":6.9,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"LOW","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","confidentialityRequirement":"NOT_DEFINED","integrityRequirement":"NOT_DEFINED","availabilityRequirement":"NOT_DEFINED","modifiedAttackVector":"NOT_DEFINED","modifiedAttackComplexity":"NOT_DEFINED","modifiedAttackRequirements":"NOT_DEFINED","modifiedPrivilegesRequired":"NOT_DEFINED","modifiedUserInteraction":"NOT_DEFINED","modifiedVulnConfidentialityImpact":"NOT_DEFINED","modifiedVulnIntegrityImpact":"NOT_DEFINED","modifiedVulnAvailabilityImpact":"NOT_DEFINED","modifiedSubConfidentialityImpact":"NOT_DEFINED","modifiedSubIntegrityImpact":"NOT_DEFINED","modifiedSubAvailabilityImpact":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED"}}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-11-20T17:20:53.119210Z","id":"CVE-2026-133422","options":[{"exploitation":"none"},{"automatable":"yes"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"133422","Ordinal":"1","Title":"Quadratic time unique_items list validation in Pydantic V1","CVE":"CVE-2026-133422","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"133422","Ordinal":"1","NoteData":"Validating an untrusted list into a field constrained with unique_items=True with Pydantic V1 takes quadratic time: an input of a few hundred kilobytes takes seconds to validate.\n\nThe ConstrainedList.unique_items_validator validator (in pydantic/types.py) checks each item against all the following ones. For a list with no duplicates (the common, valid case), this results in a quadratic number of comparisons.\n\nThe issue was fixed in commit 6ec75e57f277a820ec583e601167f25fe8dc7c87. Users relying on the pydantic.v1 namespace in Pydantic V2 should upgrade to 2.14.2 or later.\n\nImpact: denial of service through validation of untrusted input. Affected are applications validating untrusted lists into fields constrained with unique_items=True (using conlist() or Field()).\n\nThe fix only applies to lists of builtin scalar types (int, float, str, bytes, bool and None), for which duplicates can be detected in linear time. Lists of other types (e.g. models or dictionaries) are still checked in quadratic time, as their items aren't guaranteed to be hashable: bound their size using the max_items constraint.\n\nPydantic V2 models are not affected.","Type":"Description","Title":"Quadratic time unique_items list validation in Pydantic V1"}]}}}