DoS
Internationalized Domain Names in Applications (IDNA) vulnerable to denial of service from specially crafted inputs to idna.encode
The idna.encode() function could consume significant resources when given a specially crafted argument, leading to a denial-of-service. An attacker could exploit this by passing arbitrarily large inputs to the library if the application does not enforce a length limit.
kjd/idna
Medium