StraitOfVuln
Latest / CVE-2026-133428

CVE-2026-133428

MediumCVSS 6.3 (v4.0)Awaiting Analysis
CVE.org ↗NVD ↗

Description

Validating an untrusted URL with a long scheme and many hosts into a multi-host URL field (e.g. PostgresDsn) takes quadratic time and memory: an input of about a hundred kilobytes takes around a gigabyte of memory to validate. The parse_multihost_url() function (in pydantic-core/src/validators/url.rs) parses each host separately, prepending the whole URL prefix (including the scheme) to every one of them. As the scheme can be arbitrarily long, and is parsed and stored once per host, both time and memory grow quadratically with the input size. Allowed schemes (e.g. postgres for PostgresDsn) are only checked after parsing, so they don't prevent the issue. The issue was fixed in commit b4028f9d87e34750e53be0ba011d70f3c0fcc94e. Impact: denial of service through validation of untrusted input. Affected are applications validating untrusted strings into multi-host URL fields (PostgresDsn, MongoDsn, NatsDsn, or custom types built on MultiHostUrl).

Details

CVE ID
CVE-2026-133428
Published / updated
20 Nov 2026, 08:18 UTC · last modified 23 Nov 2026, 15:41 UTC
Severity
MEDIUM
CVSS score
6.3 · v4.0 · CVSS:4.0/AV:N/AC:L/AT:P/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 · Attack vector: Network
Affected vendor
pydantic
Affected products
pydantic
Affected versions
pydantic: 2.0.0 to before 2.14.0
From the publisher's (CNA) CVE record. NVD analysis is pending.
Fixed versions
pydantic 2.14.0
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
0.86% probability of exploitation in the next 30 days · 60% percentile (03 Dec 2026)
Weakness
Remediation
See the vendor advisory below.
Source (CNA)
7cec5f2f-3032-4006-8740-31f605ffab5f