CVE-2026-141537: Addressable URI normalization takes quadratic time on long runs of combining marks
Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.0.0 until 2.10.0, Addressable performs Unicode normalization on attacker-controlled input with quadratic complexity when it contains long runs of combining marks. URI normalization, comparison, display, routing, template operations, and host processing by the pure-Ruby IDNA implementation can consume excessive CPU time when they handle crafted input, resulting in denial of service. Starting with version 2.2.5, the issue affects only Ruby runtimes whose String#unicodenormalize implementation has quadratic complexity. This issue is fixed in version 2.10.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.10.0
Event History
Frequently Asked Questions
Which deployments are realistically exposed to this denial-of-service condition?
Deployments are exposed when Addressable processes attacker-controlled URI-related input, including normalization, comparison, display, routing, template operations, or host processing through the pure-Ruby IDNA implementation. From version 2.2.5 onward, exposure additionally depends on using a Ruby runtime whose String#unicode_normalize has quadratic complexity.
What input is required to trigger the issue?
An attacker needs to supply crafted input containing long runs of Unicode combining marks to an Addressable operation that performs Unicode normalization. No privileges or user interaction are required according to the supplied vector.
Which Addressable versions are affected and what version fixes the issue?
Addressable versions from 2.0.0 until 2.10.0 are affected. The issue is fixed in version 2.10.0.