Inefficient Algorithmic Complexity Affecting idna package, versions >=0.5.0 <8.0.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.17% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-HEX-IDNA-22729196
  • published22 Nov 2026
  • disclosed19 Nov 2026
  • creditAndrew Moore,Martin Karrer

Introduced: 19 Nov 2026

NewCVE-2026-117678  (opens in a new tab)
CWE-407  (opens in a new tab)

How to fix?

Upgrade idna to version 8.0.0 or higher.

Overview

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity in the ulabel/1 function in src/idna.erl, which passes an xn-- label to punycode:decode/1 before the 63-octet check_label_length/1 check runs. An attacker can cause super-linear CPU consumption by submitting a long xn-- label for IDNA decoding, because insert/4 in src/punycode.erl builds its output with list appends. Decoding time grows about eightfold for each doubling of the label length, so a single oversized label can exhaust CPU.

CVSS Base Scores

version 4.0
version 3.1