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
- 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.
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.
Affected software
| Software | Affected versions |
|---|---|
addressableRubyGems · osv:RubyGems:addressable |
|
About addressable
- Total downloads (RubyGems)
- 1,323,514,580RubyGems, 1 Dec 2026
Vulnerabilities in addressable
- In our list
- 20
- Published in the last 12 months
- 20
- Critical, last 12 months
- 0
- High, last 12 months
- 0
- Known exploited
- 0
- CVE-2026-141532Addressable URI#origin= takes the host from the userinfoLow 3.7 2 Dec 2026
- CVE-2026-141536Addressable URI#request_uri returns control characters unencoded with possible HTTP request splittingLow 3.7 1 Dec 2026
- CVE-2026-141535Addressable URI#hostname strips brackets from hosts that aren't IP literalsLow 3.7 1 Dec 2026
- CVE-2026-141538Addressable URI userinfo setters store delimiters raw, so the serialized URI names a different hostMedium 4.8 1 Dec 2026
- CVE-2026-141539Addressable native IDNA backend truncates a host at a pct-encoded NUL when normalizingMedium 4.8 1 Dec 2026
- CVE-2026-141531Addressable display_uri shows a deceptive label boundary for a host label that decodes to U+3002Low 3.1 1 Dec 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-141537
- GitHub Advisory Database https://github.com/advisories/GHSA-v6hg-69pc-4f3f