Regular expression denial of service in Addressable URI templates
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-1333.
Summary
Addressable, an alternative to Ruby's standard URI library, is affected from 2.3.0 before 2.9.1. URI templates with several variables in one expression or in adjacent expressions generate ambiguous regular expressions. A remote attacker can supply a crafted URI that makes Template#match or Template#extract backtrack excessively, exhausting CPU (CWE-1333) on MRI Ruby before 3.2 and JRuby, and on MRI Ruby 3.2 and TruffleRuby 40.0 for the large plus and number-sign form.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
Description from the CNA
Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.3.0 until 2.9.1, URI templates with several variables in one expression or several adjacent expressions generate ambiguous regular expressions. Affected forms include multi-variable expressions using operators other than plus and number sign, large plus or number-sign expressions, and adjacent single-variable expressions. Template#match or Template#extract can backtrack polynomially or exponentially on attacker-controlled URIs, causing denial of service on MRI Ruby before 3.2 and JRuby, with the large plus and number-sign form also affecting MRI Ruby 3.2 and TruffleRuby 40.0. URI parsing and Template#expand are unaffected. This issue is fixed in version 2.9.1.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| sporkmonger | addressable | 2.3.0 to before 2.9.1 | 2.9.1 | Patch available | CNA |
| — | addressable (RubyGems) | 2.3.0 to before 2.9.1 | 2.9.1 | Patch available | GHSA-9f42-57jx-vpp3 |
- addressable Vendorsporkmonger Affected 2.3.0 to before 2.9.1 Fixed in 2.9.1 Patch available CNA
- addressable (RubyGems) Vendor— Affected 2.3.0 to before 2.9.1 Fixed in 2.9.1 Patch available GHSA-9f42-57jx-vpp3
Remediation
Upgrade the addressable RubyGems package to version 2.9.1, which fixes the issue. The sources list no advisory identifiers for this fix.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
- Fix · CNA addressable (sporkmonger) Fixed in 2.9.1
- Fix · GHSA-9f42-57jx-vpp3 addressable (RubyGems) Fixed in 2.9.1 Advisory →
Timeline
- 2026-11-12 Threatist record created from CVE-2026-126352
- 2026-11-12 Alias added: GHSA-9f42-57jx-vpp3
- 2026-11-12 Fix available: RubyGems/[email protected] · GHSA-9f42-57jx-vpp3
- 2026-11-12 CVSS score added · GHSA-9f42-57jx-vpp3
- 2026-11-12 Weakness changed · GHSA-9f42-57jx-vpp3
- 2026-11-12 5 new references · GHSA-9f42-57jx-vpp3
- 2026-11-13 CISA SSVC decision points changed
References
Other 5
- https://github.com/sporkmonger/addressable/security/advisories/GHSA-9f42-57jx-vpp3
- https://github.com/sporkmonger/addressable/commit/f2b27b3ab252e56b3fa3519f7ebb491d54cf7b7c
- https://github.com/sporkmonger/addressable/releases/tag/addressable-2.9.1
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/addressable/GHSA-9f42-57jx-vpp3.yml
- https://github.com/sporkmonger/addressable
More sporkmonger vulnerabilities
- TI-2026-91040 Denial of service in Addressable URI path normalization CVSS 3.1MEDIUM 5.9
- TI-2026-91039 Addressable: Denial of Service in exploded template expressions CVSS 3.1MEDIUM 5.9
- TI-2026-91042 Regular expression denial of service in Addressable template matching CVSS 3.1MEDIUM 5.9
- TI-2026-91043 Addressable normalizes some dotted path segments to the wrong path CVSS 3.1MEDIUM 4.8
- TI-2026-91036 Addressable display_uri shows misleading hosts for invalid Punycode A-labels CVSS 3.1MEDIUM 4.3
- TI-2026-91037 Misleading hostnames in Addressable display_uri from bidi characters CVSS 3.1LOW 3.1
Sources
- CVE-2026-126352 · CVE Program
- CVE-2026-126352 · NVD
- FIRST EPSS
- GHSA-9f42-57jx-vpp3 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences