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
- Upgrade the addressable gem to version 2.9.1 or higher.
- Implement length validation for URIs retrieved from untrusted sources before processing them.
- Reject paths containing an excessive number of dot segments before normalization.
How to check your project
- Check the Gemfile.lock file in your Ruby project for the addressable gem version.
- Run 'bundle info addressable' to verify the currently installed version of the gem.
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| 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 vector | Network |
|---|---|
| Attack complexity | High |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | None |
| Availability | High |
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
References
- WEB https://github.com/sporkmonger/addressable/security/advisories/GHSA-qq38-m9mg-xjj5
- WEB https://github.com/sporkmonger/addressable/commit/25c7c412a2f7e06c3cac92872e831f6d053703c5
- WEB https://github.com/rubysec/ruby-advisory-db/blob/master/gems/addressable/GHSA-qq38-m9mg-xjj5.yml
- PACKAGE https://github.com/sporkmonger/addressable
- WEB https://github.com/sporkmonger/addressable/releases/tag/addressable-2.9.1
Source records: GHSA-qq38-m9mg-xjj5 (OSV.dev) · EPSS by FIRST, 2026-11-26.