CVE-2026-141537: Addressable Addressable URI Normalization Takes Quadratic Vulnerability
LOWCVE-2026-141537 is a LOW (CVSS 3.7) addressable uri normalization takes quadratic vulnerability (CWE-407: Inefficient Algorithmic Complexity) affecting Addressable libraries in the RubyGems ecosystem. The issue involves addressable uri normalization takes quadratic time on long runs of combining marks. Remediation is available by upgrading affected packages to version 2.10.0.
CVE-2026-141537 at a Glance
Security Impact
CVSS: 3.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L).
How to Fix CVE-2026-141537
To remediate this vulnerability, upgrade all affected Addressable dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade addressable to 2.10.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for addressable
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-141537, inspect your project dependencies for Addressable:
inspect dependencies for addressable
Analyze the terminal output to locate any version of Addressable in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.10.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-407: Inefficient Algorithmic Complexity, where an algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that the worst case is being reached. In Addressable, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-141537 Affected Addressable Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
addressable
|
RubyGems |
≥ 2.0.0
< 2.10.0
|
2.10.0
|
References
Frequently Asked Questions
What is CVE-2026-141537?
Which Addressable versions are affected?
What version fixes CVE-2026-141537?
Is addressable affected?
What is the CVSS score of CVE-2026-141537?
What CWE is associated with CVE-2026-141537?
How can I check RubyGems dependencies for CVE-2026-141537?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v6hg-69pc-4f3f",
"modified" : "2026-12-01T23:53:53Z",
"published" : "2026-12-01T23:53:53Z",
"aliases" : [ "CVE-2026-141537" ],
"summary" : "Addressable URI normalization takes quadratic time on long runs of combining marks",
"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't normalize and is unaffected.\n\n### Affected Versions\n\nThis 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.\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\" => \"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)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "addressable"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.10.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.9.2"
}
} ],
"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"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-407" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-12-01T23:53:53Z",
"nvd_published_at" : null
}
}