CVE-2026-117678 json
idna: punycode labels are decoded before the 63-octet length check, so a long xn-- label causes super-linear CPU use
published yesterday modified 2h ago also EEF-CVE-2026-117678 , EUVD-2026-129475
- cvss
- 6.9
- version 4.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 5%
- public exploits
- 0
- none known
Summary
Inefficient Algorithmic Complexity vulnerability in benoitc idna allows an attacker who controls a hostname passed to the library to exhaust CPU via an over-long xn-- label. idna:ulabel/1 in src/idna.erl hands every ASCII label that starts with xn-- to punycode:decode/1 without applying check_label_length/1, the 63-octet DNS label limit. punycode:decode/1 in src/punycode.erl builds its output with list appends in insert/4, so its cost grows super-linearly with the label length. A label of a few kilobytes keeps a scheduler busy for seconds to minutes before the label is rejected as invalid punycode.
Every decode entry point reaches this path: decode/1, decode/2, to_unicode/1 and from_ascii/1. The encode path reaches it as well, because alabel/1 calls ulabel/1 on an ASCII xn-- label before its own length check, so encode/1, encode/2 and to_ascii/1 are affected for such input.
This issue affects idna: from 0.5.0 before 8.0.0.
Patch / fix
- hex idna 8.0.0
- benoitc idna 8.0.0
- github.com/benoitc/erlang-idna@c8caba6 commit
- github.com/benoitc/erlang-idna@7a465b6 commit
- github.com/benoitc/erlang-idna#44 pull request
- github.com/benoitc/erlang-idna#45 pull request
Is CVE-2026-117678 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-117678 updated cvss 7.5
idna: idna: Denial of Service via oversized domain labels
-
Red Hat Hardened Images rust 1.99.1-2.hum1, ruby4.0 4.0.9-41.hum1, ruff 0.15.11-1.1.hum1, python-idna 3.20-1.hum1, openshell 0.1.8-0.1.hum1, ruby3.4 3.4.12-33.1.hum1, +5 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 17h ago
Exploit prediction
0.16% chance of exploitation in the next 30 days, higher than 5% of all scored CVEs (FIRST EPSS, 2026-11-19).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 6.9 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| OSV | 4.0 | 6.9 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| hex | idna | >=0.5.0, <8.0.0 |
8.0.0 |
Affected products
- benoitc idna
Classification
- Weakness
-
- CWE-407 Inefficient Algorithmic Complexity
References
-
github.com
/benoitc/erlang-idna/pull/44
issue-tracking, web
-
github.com
/benoitc/erlang-idna/pull/45
patch
-
github.com
/benoitc/erlang-idna/commit/c8caba6653259071f7076fe49320f37402b8b81f
related, web
-
github.com
/benoitc/erlang-idna/commit/7a465b630eb793556aa7ac282fb73e49251dadd2
patch
-
cna.erlef.org
/cves/CVE-2026-117678.html
related, third-party-advisory, web
-
osv.dev
/vulnerability/EEF-CVE-2026-117678
related
-
hex.pm
/packages/idna
package
Sources
- CVE List CVE-2026-117678
- NVD CVE-2026-117678
- OSV EEF-CVE-2026-117678
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.