CVE-2026-141537
### Impact 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. With the native implementation (libidn), the host is linear. `URI.parse` by itself doesn't normalize and is unaffected. ### Affected Versions This vulnerability affects Addressable >= 2.0.0. Versions 2.0.0 through 2.2.4 are affected on every Ruby. From 2.2.5 on, it affects only Rubies whose `String#unicode_normalize` has the quadratic loop: every Ruby 3.2 release and earlier, 3.3.0 through 3.3.10 and 3.4.0 through 3.4.7. Ruby 3.3.11, 3.4.8 and 4.0.0 fixed the loop. It is fixed in 2.10.0 on every Ruby, where a run of more than 30 combining marks, the limit of the Stream-Safe Text Format in UAX #15, is left as it is instead of being normalized. The text around it is normalized as before. ### 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. ### Proof of Concept The script normalizes, comp
Properties
- Summary
- Addressable URI normalization takes quadratic time on long runs of combining marks
- Severity
- low
- Nvd fetched at
- 2026-12-02T06:37:54.190518+00:00
- Cvss score
- 3.7
- Cvss severity
- LOW
- Retrieved at
- 2026-12-02T06:39:20+00:00
- Ghsa published
- 2026-12-01T23:53:53Z
- Source url
- https://github.com/advisories/GHSA-v6hg-69pc-4f3f
- Ghsa updated
- 2026-12-01T23:53:54Z
- Ghsa id
- GHSA-v6hg-69pc-4f3f
- Last source
- GitHub Advisory Database
- Score
- 3.7
- Cvss version
- 3.1
- Cve id
- CVE-2026-141537
- Cvss vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
- First seen by Signal
- 2026-12-01T22:36:00+00:00
- Name
- CVE-2026-141537
- Is ghsa only
- false
- Vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
- Published at
- 2026-12-01T22:18:03.893
Related Entities (3)
AFFECTS (1)
HAS_WEAKNESS (1)
VULNERABLE_TO (1)
Related research
Explore deeper with Ninja Signal's threat intelligence graph