{"id":"CVE-2026-45409","published":"2026-06-05T22:06:07Z","modified":"2026-06-08T16:34:00Z","title":"Internationalized Domain Names in Applications (IDNA): Specially crafted inputs to idna.encode() can bypass…","vendor":"kjd","product":"idna","tier":"tail","description":{"text":"Internationalized Domain Names in Applications (IDNA) for Python provides support for Internationalized Domain Names in Applications (IDNA) and Unicode IDNA Compatibility Processing. In versions prior to 3.15, payloads such as `\"\\u0660\" * N` or `\"\\u30fb\" * N + \"\\u6f22\"` utilize the `valid_contexto` function prior to length rejection, and for high values of `N` will take a long time to process. This is the same issue as CVE-2024-3651, however the original remediation in 2024 was not a complete fix. A specially crafted argument to the `idna.encode()` function could consume significant resources. This may lead to a denial-of-service. Starting in version 3.14, the function rejects long inputs as soon as practicable prior to any further processing to minimize resource consumption. In version 3.15, this approach was extended to lesser used alternate functions (i.e. per-label conversions and codec support). A workaround is available. Domain names cannot exceed 253 characters in length. If this length limit is enforced prior to passing the domain to the `idna.encode()` function, it should no longer consume significant resources. This is triggered by arbitrarily large inputs that would not occur in normal usage, but may be passed to the library assuming there is no preliminary input validation by the higher-level application.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00408,"percentile":0.35968,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/kjd/idna/security/advisories/GHSA-65pc-fj4g-8rjx","tags":["x_refsource_CONFIRM"]}],"priority":{"score":12.0,"factors":[{"name":"EPSS percentile","points":7.19},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"kjd","affectedVersions":[{"vendor":"kjd","product":"idna","versions":["< 3.15"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-06-08T14:30:54.406761Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"idna","vulnerableRanges":["<3.15"],"patched":["3.15"],"from":["GHSA-65pc-fj4g-8rjx","PYSEC-2026-215"],"provenance":"source"}],"summary":{"text":"The kjd idna Python library, which provides Internationalized Domain Names in Applications (IDNA) processing, prior to version 3.15 has an inefficiency in its handling of specially crafted inputs to the idna.encode() function, where very long inputs are processed by the valid_contexto function before length rejection. An attacker with network access and no authentication or user interaction can send a crafted input to an application that passes untrusted domain names to idna.encode() without prior length validation, consuming significant resources and potentially causing a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:51:40Z"},"euvd":{"id":"EUVD-2026-34921","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-kjd-idna-cve-2024-3651","parents":[{"from":"CVE-2024-3651","to":"CVE-2026-45409","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"This is the same issue as CVE-2024-3651, however the original remediation in 2024 was not a complete fix.","from":"CVE.org","in":"CVE-2026-45409"},{"kind":"version-step","provenance":"source","package":"PyPI:idna","fromFixed":"3.7","toFixed":"3.15","daysApart":698}]}],"packageHistory":[{"cve":"CVE-2024-3651","published":"2024-07-07","fixed":"3.7","kev":false},{"cve":"CVE-2026-45409","published":"2026-06-05","fixed":"3.15","kev":false}],"package":"PyPI:idna"}}