pypi package report

Is idna safe?

2 known vulnerabilities, worst severity MODERATE.

// reach

6 direct dependencies

1 carry known advisories, worst MEDIUM

138 packages depend on it

an advisory here reaches each of them

Create a free accountfor every dependency path, dependent and what to upgrade
// ai model usage

No published models are known to use this package.


cvss
5.3
medium

CVSS v3.1 base score out of 10

epss
0.41%
medium

chance of exploitation in 30 days, 35th percentile of all CVEs

xyz score
not scored

CyberXYZ composite out of 10

fig. 01 — GHSA-65pc-fj4g-8rjx, the advisory selected below

// 2 advisories

GHSA-65pc-fj4g-8rjx

MODERATEGitHub ratingCVE-2026-45409

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.

// cvss v3.1 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

Checked 2026-11-06 at 21:51 UTC. The most recent advisory here was published 2026-05-19. Updated continuously from NVD, GHSA, OSV and CNA feeds.

Think a verdict here is wrong? Tell us — we respond within 2 business days.