Internationalized Domain Names in Applications (IDNA): Specially crafted inputs to idna.encode() can bypass CVE-2024-3651 fix
This is the same issue as CVE-2024-3651, however the original remediation in 2024 was not a complete fix. 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.
Impact
A specially crafted argument to the idna.encode() function could consume significant resources. This may lead to a denial-of-service.
Patches
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).
Workarounds
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.
Affected Packages
| Ecosystem | Package | Vulnerable Versions | Patched Version |
|---|---|---|---|
| pypi |
idna
|
< 3.15 |
3.15
|
Bump the uv group across 1 directory with 9 updates
Closed 2 days agoBump the pip group across 1 directory with 7 updates
Open 7 days agochore(deps): bump idna from 3.13 to 3.15
Closed 7 days agoBump idna from 3.10 to 3.15
Closed 12 days agoBump the uv group across 1 directory with 10 updates
Closed 13 days agoBump the pip group across 1 directory with 2 updates
Open 13 days agochore(deps): bump the pip group across 1 directory with 17 updates
Open 14 days agochore(deps): bump the pip group across 1 directory with 12 updates
Open 15 days agochore(deps): bump idna from 3.13 to 3.15 in /ops-agent
Open 15 days agoBump the uv group across 1 directory with 6 updates
Open 17 days agoBump the pip group across 1 directory with 6 updates
Open 17 days agochore(deps): bump the uv group across 1 directory with 5 updates
Open 19 days agochore(deps): bump the pip group across 1 directory with 2 updates
Open 20 days agoBump the pip group across 1 directory with 7 updates
Closed 20 days agobuild(deps): Bump the uv group across 1 directory with 6 updates
Open 20 days agochore(deps): bump the uv group across 1 directory with 2 updates
Closed 20 days agoBump the uv group across 1 directory with 13 updates
Closed 21 days agobuild(deps): bump the pip group across 2 directories with 4 updates
Closed 23 days agochore(deps): bump idna from 3.11 to 3.15 in /search
Closed 26 days agoBump the pip group across 1 directory with 11 updates
Closed 26 days agoBump the uv group across 1 directory with 15 updates
Closed 26 days agoBump the pip group across 1 directory with 11 updates
Open 27 days agoBump the uv group across 1 directory with 9 updates
Open 27 days agobuild(deps): bump the uv group across 1 directory with 7 updates
Open 27 days agochore(deps): bump the uv group across 2 directories with 11 updates
Open 27 days agobuild(deps): bump idna from 3.6 to 3.15 in /scripts/conformance/ogcapi
Open 27 days agoBump the pip group across 1 directory with 7 updates
Open 28 days agoBump the pip group across 1 directory with 5 updates
Closed 28 days agoBump idna from 3.11 to 3.15
Closed 28 days agochore(deps): bump the uv group across 1 directory with 11 updates
Closed about 1 month agochore(deps): bump the pip group across 1 directory with 13 updates
Open about 1 month agochore(deps): bump the uv group across 13 directories with 12 updates
Open about 1 month agochore(deps): bump the uv group across 13 directories with 12 updates
Open about 1 month agobuild(deps): bump the pip group across 4 directories with 6 updates
Open about 1 month agobuild(deps): bump the pip group across 4 directories with 6 updates
Closed about 1 month agoBump idna from 3.4 to 3.15
Open about 1 month agochore(deps): bump the pip group across 1 directory with 11 updates
Closed about 1 month agochore(deps): bump the uv group across 1 directory with 13 updates
Closed about 1 month agochore(deps): bump the uv group across 1 directory with 16 updates
Closed about 1 month agoBump idna from 3.10 to 3.15
Closed about 2 months agoBump idna from 3.11 to 3.15 in /webapp/worker
Closed about 2 months agoBump idna from 3.10 to 3.15 in /infrastructure/software-engineering/language/python/dependency-management/uv
Closed about 2 months agoBump idna from 3.14 to 3.15 in /sphinx-docs
Open about 2 months agobuild(deps): bump the uv group across 1 directory with 14 updates
Closed about 2 months agoBump the uv group across 1 directory with 16 updates
Closed 2 months agoBump idna from 3.13 to 3.15
Closed 2 months agoBump idna from 3.11 to 3.15
Closed 2 months agoBump the pip group across 2 directories with 4 updates
Closed 2 months agoBump the uv group across 3 directories with 9 updates
Open 2 months agoBump the uv group across 3 directories with 7 updates
Closed 2 months agoActions
Advisory Details
| Published: | May 19, 2026 5 months ago |
| Updated: | September 25, 2026 7 days ago |
| CVSS Score: | 6.9 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 |
| EPSS: | 0.46% 37th percentile |
| Source: | Github |
| Classification: | GENERAL |
| UUID: | GSA_kwCzR0hTQS02NXBjLWZqNGctOHJqeM4ABXFY |