# CVE-2026-45409: Internationalized Domain Names in Applications (IDNA): Specially crafted inputs to idna.encode() can bypass CVE-2024-3651 fix

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2026-05-19T14:34:32.000Z
- Modified: 2026-09-10T03:50:45.700Z
- Also known as: GHSA-65pc-fj4g-8rjx, PYSEC-2026-215
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- kjd idna: < 3.15
- idna (PyPI): before 3.15
- kjd internationalized_domain_names_in_applications: before 3.15

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- PyPA Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/kjd/idna/security/advisories/GHSA-65pc-fj4g-8rjx> (advisory, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-45409> (advisory)
- <https://github.com/kjd/idna> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/idna/PYSEC-2026-215.yaml> (web)

## Sources

- CVE List: [CVE-2026-45409](https://www.cve.org/CVERecord?id=CVE-2026-45409), CVE Terms of Use, modified 2026-06-08
- GitHub Advisory Database: [GHSA-65pc-fj4g-8rjx](https://github.com/advisories/GHSA-65pc-fj4g-8rjx), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-45409](https://nvd.nist.gov/vuln/detail/CVE-2026-45409), Public domain, modified 2026-07-23
- PyPA Advisory Database: [PYSEC-2026-215](https://osv.dev/vulnerability/PYSEC-2026-215), CC-BY-4.0, modified 2026-06-16

---

Page: https://cve.day/CVE-2026-45409 · Whole record: https://cve.day/CVE-2026-45409.json · Rebuilt by cve.day 2026-11-25T22:59:23.913Z
