RubyGems
CVE-2026-126354
Addressable URI normalization resolves some dotted path segments to the wrong path
- Severity
- Medium 4.8
- Published
- 12 Nov 2026
- Last changed
- 12 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 2.9.1
- Exploit chance
- 0.3% in the next 30 daysHigher than 21% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- Path traversal (CWE-22)CWE-436
- Attack
- Over the network · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Read some data · Change some data
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N- Also known as
- GHSA-8gmh-2hhj-2hv9
- Sources
- OSV.dev and GitHub
Description
Addressable::URI.normalize_path resolves some paths containing .. segments to a different path than RFC 3986 does. When a path climbs above the root before any other .. is resolved, the segments that later .. segments should remove are instead kept: /../../public/x/../../secret normalizes to /public/x/secret instead of /secret. URI#normalize, URI#join, URI#== and URI#=== all use this normalization. An application that checks a normalized Addressable path against an allowlist, but sends the original URI to something that resolves it according to RFC 3986, can be made to allow a request for a path outside the allowlist.
normalize_path in 2.9.0 (lib/addressable/uri.rb) removes dot segments by repeating a set of rewrites until nothing changes. On each pass it finds the first /segment/../ pair with RULE_2B_2C, then replaces every textual copy of that pair in the path with /:
Affected software
| Software | Affected versions |
|---|---|
addressableRubyGems · osv:RubyGems:addressable |
|
About addressable
- Total downloads (RubyGems)
- 1,317,979,305RubyGems, 24 Nov 2026
Vulnerabilities in addressable
- In our list
- 6
- Published in the last 12 months
- 6
- Critical, last 12 months
- 0
- High, last 12 months
- 0
- Known exploited
- 0
- CVE-2026-126348Addressable display_uri can show misleading hosts with invalid Punycode A-labelsMedium 4.3 12 Nov 2026
- CVE-2026-126349Addressable display_uri can show misleading hosts containing bidi and invisible charactersLow 3.1 12 Nov 2026
- CVE-2026-126351Addressable: Denial of service in URI path normalizationMedium 5.9 12 Nov 2026
- CVE-2026-126350Addressable: Regular Expression Denial of Service in templates with certain exploded expressionsMedium 5.9 12 Nov 2026
- CVE-2026-126352Addressable: Regular Expression Denial of Service in templates with multiple variablesMedium 5.9 12 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-126354
- GitHub Advisory Database https://github.com/advisories/GHSA-8gmh-2hhj-2hv9