BREW-MIKUTTER-CVE-2026-141537 (GHSA-V6HG-69PC-4F3F)
Vulnerability from osv_homebrew – Published: 2026-12-02 09:28 – Updated: 2026-12-02 23:40 – Source websiteImpact
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_pathand the othernormalized_*methods,#==,#===,#display_uri,#route_fromand#route_toURI.normalized_encodeTemplate#expand,#matchand#extractIDNA.to_asciiwith 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, compares and expands URIs with 8,000 combining marks, as they are and pct-encoded. It makes no network requests.
require "addressable/uri"
require "addressable/template"
def seconds
started = Process.clock_gettime(Process::CLOCK_MONOTONIC)
yield
(Process.clock_gettime(Process::CLOCK_MONOTONIC) - started).round(2)
end
# Ruby caches each normalized unit, so each call uses different marks.
path = "\u0301\u0323" * 4000 # 16 kB
encoded = "%CC%80%CC%A4" * 4000 # 48 kB, ASCII only
value = "\u0302\u0325" * 4000
puts "ruby #{RUBY_VERSION}"
puts "normalize: #{seconds { Addressable::URI.parse("http://example.com/a#{path}").normalize }} s"
puts "==: #{seconds { Addressable::URI.parse("http://example.com/a#{encoded}") == Addressable::URI.parse("http://example.com/") }} s"
puts "expand: #{seconds { Addressable::Template.new("/{x}").expand("x" => "a#{value}") }} s"
Output with 2.9.2:
ruby 3.2.11
normalize: 2.08 s
==: 2.07 s
expand: 2.08 s
ruby 4.0.9
normalize: 0.01 s
==: 0.01 s
expand: 0.01 s
Output with the fix:
ruby 3.2.11
normalize: 0.01 s
==: 0.01 s
expand: 0.0 s
Credits
Reported by Patrik Ragnarsson (@dentarg), who also provided the fix.
For more information
If there are any questions or comments about this advisory: * Open an issue
{
"affected": [
{
"ecosystem_specific": {
"fix": "bump",
"range_state": "fixed",
"resource": "addressable",
"resource_purl": "pkg:gem/addressable@2.8.6",
"upstream_fixed_in": "2.10.0"
},
"package": {
"ecosystem": "Homebrew",
"name": "mikutter",
"purl": "pkg:brew/mikutter"
},
"ranges": [
{
"events": [
{
"introduced": "3.4.6"
},
{
"fixed": "5.1.1_1"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"confidence": "high",
"source": "matched",
"strategy": "registry",
"upstream_evidence": [
{
"ecosystem": "RubyGems",
"key": "pkg:gem/addressable@2.8.6",
"name": "addressable",
"resource": "addressable",
"strategy": "registry",
"subject_version": "2.8.6"
}
]
},
"details": "### Impact\n\nNormalizing 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.\n\n`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:\n\n- `URI.normalize_component`, so `#normalize`, `#normalized_path` and the other `normalized_*` methods, `#==`, `#===`, `#display_uri`, `#route_from` and `#route_to`\n- `URI.normalized_encode`\n- `Template#expand`, `#match` and `#extract`\n- `IDNA.to_ascii` with the pure-Ruby IDNA implementation, for hosts. With the native implementation (libidn), the host is linear.\n\n`URI.parse` by itself doesn\u0027t normalize and is unaffected.\n\n### Affected Versions\n\nThis vulnerability affects Addressable \u003e= 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.\n\n### Workarounds\n\n- Upgrade to Ruby 3.3.11, 3.4.8, 4.0.0 or later, if you use Addressable 2.2.5 or later.\n- 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.\n\n### Proof of Concept\n\nThe script normalizes, compares and expands URIs with 8,000 combining marks, as they are and pct-encoded. It makes no network requests.\n\n```ruby\nrequire \"addressable/uri\"\nrequire \"addressable/template\"\n\ndef seconds\n started = Process.clock_gettime(Process::CLOCK_MONOTONIC)\n yield\n (Process.clock_gettime(Process::CLOCK_MONOTONIC) - started).round(2)\nend\n\n# Ruby caches each normalized unit, so each call uses different marks.\npath = \"\\u0301\\u0323\" * 4000 # 16 kB\nencoded = \"%CC%80%CC%A4\" * 4000 # 48 kB, ASCII only\nvalue = \"\\u0302\\u0325\" * 4000\n\nputs \"ruby #{RUBY_VERSION}\"\nputs \"normalize: #{seconds { Addressable::URI.parse(\"http://example.com/a#{path}\").normalize }} s\"\nputs \"==: #{seconds { Addressable::URI.parse(\"http://example.com/a#{encoded}\") == Addressable::URI.parse(\"http://example.com/\") }} s\"\nputs \"expand: #{seconds { Addressable::Template.new(\"/{x}\").expand(\"x\" =\u003e \"a#{value}\") }} s\"\n```\n\nOutput with 2.9.2:\n\n```\nruby 3.2.11\nnormalize: 2.08 s\n==: 2.07 s\nexpand: 2.08 s\n\nruby 4.0.9\nnormalize: 0.01 s\n==: 0.01 s\nexpand: 0.01 s\n```\n\nOutput with the fix:\n\n```\nruby 3.2.11\nnormalize: 0.01 s\n==: 0.01 s\nexpand: 0.0 s\n```\n\n\n### Credits\n\nReported by Patrik Ragnarsson (@dentarg), who also provided the fix.\n\n### For more information\n\nIf there are any questions or comments about this advisory:\n* [Open an issue](https://github.com/sporkmonger/addressable/issues)",
"id": "BREW-mikutter-CVE-2026-141537",
"modified": "2026-12-02T23:40:03Z",
"published": "2026-12-02T09:28:20Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/sporkmonger/addressable/security/advisories/GHSA-v6hg-69pc-4f3f"
},
{
"type": "WEB",
"url": "https://github.com/sporkmonger/addressable/commit/971be7cf4b484d4fed43dad57d5c8d967b5d08e6"
},
{
"type": "PACKAGE",
"url": "https://github.com/sporkmonger/addressable"
},
{
"type": "WEB",
"url": "https://github.com/sporkmonger/addressable/releases/tag/addressable-2.10.0"
}
],
"schema_version": "1.7.3",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L",
"type": "CVSS_V3"
}
],
"summary": "Addressable URI normalization takes quadratic time on long runs of combining marks",
"upstream": [
"GHSA-v6hg-69pc-4f3f",
"CVE-2026-141537"
]
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.