CVE-2026-126351 — Addressable: Denial of service in addressable
Addressable: Denial of service in URI path normalization
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.52%). Schedule for your next planned update.
Does your project use an affected addressable version?
Paste your Gemfile.lock to check it for CVE-2026-126351 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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,==orjoinon 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 asLocation, 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:
Advisory Timeline
- First published November 12, 2026 (14 days ago).
- Last revised November 12, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install addressable -v 2.9.1
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: RubyGems (1).
| Package | Fixed In |
|---|---|
| addressable RubyGems · Affected: 0.1.0, 0.1.1, 0.1.2, 1.0.0 (+44 more) | 2.9.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-407
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.9 score means for each attack dimension.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/sporkmonger/addressable/security/advisories/GHSA-qq38-m9mg-xjj5WEB
- https://github.com/sporkmonger/addressable/commit/25c7c412a2f7e06c3cac92872e831f6d053703c5WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/addressable/GHSA-qq38-m9mg-xjj5.ymlWEB
- https://github.com/sporkmonger/addressablePACKAGE
- https://github.com/sporkmonger/addressable/releases/tag/addressable-2.9.1WEB
Frequently Asked Questions
- What is CVE-2026-126351?
- Addressable: Denial of service in URI path normalization. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.9/10).
- How do I check if my project is affected by CVE-2026-126351?
- CVE-2026-126351 affects addressable. It has a 0.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-126351 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is a below-median EPSS score — only 37.2% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-35611HIGH
Addressable has a Regular Expression Denial of Service in Addressable templates
- CVE-2021-32740HIGH
Regular Expression Denial of Service in Addressable templates
- CVE-2026-128084MEDIUM
sqlite3-ruby: Possible SQL query truncation when a string is 4 GiB or larger
- CVE-2026-126354MEDIUM
Addressable URI normalization resolves some dotted path segments to the wrong path
- CVE-2026-126352MEDIUM
Addressable: Regular Expression Denial of Service in templates with multiple variables
- CVE-2026-115472MEDIUM
Doorkeeper: When using public clients, any client can revoke any access token
- CVE-2026-126350MEDIUM
Addressable: Regular Expression Denial of Service in templates with certain exploded expressions