All vulnerabilities

RubyGems

CVE-2026-141537

Addressable URI normalization takes quadratic time on long runs of combining marks

Severity
Low 3.7
Published
1 Dec 2026
Last changed
2 Dec 2026
Added to UpHeron
2 Dec 2026
Fixed in
2.10.0
Weakness
Inefficient algorithmic complexity (CWE-407)
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Slow it down
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
Also known as
GHSA-v6hg-69pc-4f3f
Sources
OSV.dev and GitHub

Description

Normalizing a URI that contains a long run of combining marks takes time quadratic in the length of the run. A 16 kB path takes about 2 seconds of CPU time. The marks can also be pct-encoded, so a URI with only ASCII characters triggers it. An attacker who can submit a URI that an application normalizes, compares or matches against a template can hold a worker for seconds per request, and for over a minute with longer input. There is no confidentiality or integrity impact.

String#unicode_normalize orders the combining marks after a character with a loop that is quadratic in their number, and Addressable calls it on attacker-controlled text. It is reached from:

  • URI.normalize_component, so #normalize, #normalized_path and the other normalized_* methods, #==, #===, #display_uri, #route_from and #route_to
  • URI.normalized_encode
  • Template#expand, #match and #extract
  • IDNA.to_ascii with the pure-Ruby IDNA implementation, for hosts.
From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Workarounds

  • Upgrade to Ruby 3.3.11, 3.4.8, 4.0.0 or later, if you use Addressable 2.2.5 or later.
  • Otherwise, limit the length of URIs before normalizing them, or reject input with long runs of combining marks, such as /\p{M}{31,}/ after pct-decoding.
Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
addressableRubyGems · osv:RubyGems:addressable
  • From 2.0.0 before 2.10.0

About addressable

Total downloads (RubyGems)
1,323,514,580RubyGems, 1 Dec 2026

References