MEDIUM · CVSS 3.1 5.9 EPSS 0.5% · 37th percentile CWE-407

CVE-2026-126351: Addressable: Denial of service in URI path normalization

Published 2026-11-12 · Updated 2026-11-12 · Also known as GHSA-qq38-m9mg-xjj5

Summary

The Addressable RubyGem contains an algorithmic complexity vulnerability that leads to a denial of service via uncontrolled resource consumption. Developers using Addressable should update to version 2.9.1 or later to mitigate the risk.

Who is affected

The vulnerability affects applications that use Addressable to normalize, compare, or join URI paths provided by untrusted sources. Because the `normalize_path` function exhibits quadratic time complexity relative to the number of nested dot segments, specifically crafted malicious URIs can consume excessive CPU resources and cause a denial of service. This affects all Ruby implementations, including MRI Ruby 3.2 and later.

Exploitability

The vulnerability is rated as medium severity with a CVSS 3.1 score of 5.9, requiring high attack complexity but no authentication or user interaction. With an EPSS score of 0.004, exploitation is currently low-frequency, and the flaw is not listed in the CISA Known Exploited Vulnerabilities catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
RubyGems addressable >= 0, < 2.9.1 2.9.1 bundle update addressable

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Attack vectorNetwork
Attack complexityHigh
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityHigh

FAQ

Is URI.parse affected by this vulnerability?

No, URI.parse by itself is not affected by this flaw.

Does this vulnerability only affect specific Ruby implementations?

No, it affects every Ruby implementation, including MRI Ruby 3.2 and later.

What is the primary cause of the performance degradation?

The normalize_path function removes dot segments in a way that requires repeated passes over the entire path, resulting in quadratic time complexity.

Original advisory description
### Impact `Addressable::URI.normalize_path` takes time quadratic in the number of nested dot segments in a path (e.g., `"/" + "a/" * n + "../" * n`, which for n = 3 is `/a/a/a/../../../`), because it removes one dot segment per pass over the whole path. `URI#normalize`, `URI#normalized_path`, `URI#==`, `URI#===` and `URI#join` all call it. Normalizing, comparing or joining a URI taken from user input can result in uncontrolled resource consumption, leading to denial of service. On 2.9.0, normalizing a 34 KB path takes about 3.5 seconds on MRI Ruby 4.0, and the cost grows with the square of the path length. This affects every Ruby implementation, including MRI Ruby 3.2 and later. `URI.parse` by itself is unaffected, as is code that never normalizes, compares, or joins URIs from untrusted sources. ### Affected Versions This vulnerability affects all versions of Addressable prior to 2.9.1. It is fixed in 2.9.1. ### Workarounds - Limit the length of URIs taken from user input before calling `normalize`, `==` or `join` on them. Web servers often limit request lines to about 8 KB, which keeps the cost to about 150 milliseconds per call on typical hardware, but URIs from other sources (request bodies, headers such as `Location`, stored data) may not be limited. - Reject paths with many dot segments before normalizing them. ### Credits Reported by Matthew Mongeau (@halogenandtoast), Ruby Central Gem Security, who also suggested the single-pass approach used in the fix. ### For more information If there are any questions or comments about this advisory: * [Open an issue](https://github.com/sporkmonger/addressable/issues)

References

Source records: GHSA-qq38-m9mg-xjj5 (OSV.dev) · EPSS by FIRST, 2026-11-26.