CVE-2026-141537: Addressable Addressable URI Normalization Takes Quadratic Vulnerability

LOW
Advisory Identifier: GHSA-v6hg-69pc-4f3f
CVSS 3.7
CWE-407
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2026-141537
GHSA Identifier GHSA-v6hg-69pc-4f3f
Severity LOW
CVSS v3.1 Base Score 3.7
CWE Classification CWE-407: Inefficient Algorithmic Complexity
Affected Product Addressable
Package Ecosystem RubyGems
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (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.

addressable fixed: 2.10.0
Upgrade addressable to 2.10.0
Verify Direct and Transitive Dependencies

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

### 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, compares and expands URIs with 8,000 combining marks, as they are and pct-encoded. It makes no network requests. ```ruby 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](https://github.com/sporkmonger/addressable/issues)

CVE-2026-141537 Affected Addressable Versions

1 component(s)
Fixed Versions:
2.10.0
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?
CVE-2026-141537 is a security vulnerability in Addressable involving Addressable URI normalization takes quadratic time on long runs of combining marks under CWE-407: Inefficient Algorithmic Complexity.
Which Addressable versions are affected?
Affected versions include releases prior to 2.10.0 across affected packages: addressable.
What version fixes CVE-2026-141537?
Upgrading to 2.10.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is addressable affected?
Yes, addressable is affected in releases prior to 2.10.0. Upgrade your dependency to 2.10.0 or later.
What is the CVSS score of CVE-2026-141537?
CVE-2026-141537 has a CVSS v3.1 base score of 3.7 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2026-141537?
CVE-2026-141537 is classified under CWE-407: Inefficient Algorithmic Complexity (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.).
How can I check RubyGems dependencies for CVE-2026-141537?
Run the dependency tree command: 'inspect dependencies for addressable'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}