CVE-2026-126350: Addressable: Regular Expression Denial of Service in templates with certain exploded expressions
Published 2026-11-12 · Updated 2026-11-12 · Also known as GHSA-j82w-28jv-3pmj
Summary
Addressable contains a Regular Expression Denial of Service vulnerability in its URI template implementation when using the explode modifier with specific operators. Engineering and security teams using affected versions of Addressable on vulnerable Ruby runtimes should update their dependencies or runtime environments.
Who is affected
Templates using the `*` modifier with the `/`, `.`, `;`, `?` or `&` operators generate regular expressions vulnerable to catastrophic backtracking when matched against maliciously crafted URIs. This affects applications calling `Template#match` or `Template#extract` with user-supplied input on Ruby implementations lacking regex memoization, such as MRI Ruby < 3.2 and JRuby, potentially causing thread exhaustion and denial of service.
Exploitability
The vulnerability has a CVSS 3.1 base score of 5.9 (Medium) with a vector of CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H, indicating network attack vector and high complexity. It has an EPSS score of 0.004 (percentile 0.370), and is not listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade the RubyGems addressable package to version 2.9.1 or later.
- Upgrade to MRI Ruby 3.2 or later if the application does not use JRuby.
- Avoid matching user-supplied input against templates that use the `*` modifier with `/`, `.`, `;`, `?`, or `&` operators on unpatched versions.
- Apply a short timeout around calls to `Template#match` or `Template#extract` processing user data.
How to check your project
- Check project dependency files (such as Gemfile.lock) for the RubyGems package 'addressable' within the version range introduced at 2.3.0 and fixed at 2.9.1.
- Inspect application codebases for usage of URI template matching capabilities such as `Template#match` or `Template#extract` involving templates with the `*` modifier.
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 |
>= 2.3.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
Which versions of Addressable are affected?
Addressable versions >= 2.3.0 up to and including 2.9.0 are affected.
Are all Ruby runtimes vulnerable?
No. The vulnerability requires a regular expression engine that backtracks without memoization. MRI Ruby 3.2 and later as well as TruffleRuby 40.0 are not affected, whereas MRI Ruby < 3.2 and JRuby are vulnerable.
Does calling Template#expand expose an application to this vulnerability?
No. Users who only call `Template#expand` are unaffected by this vulnerability.
Original advisory description
References
- WEB https://github.com/sporkmonger/addressable/security/advisories/GHSA-j82w-28jv-3pmj
- WEB https://github.com/sporkmonger/addressable/issues/364
- WEB https://github.com/sporkmonger/addressable/commit/26d1e9e8409a861571f9d0029022b6e9b9158b5e
- WEB https://github.com/rubysec/ruby-advisory-db/blob/master/gems/addressable/GHSA-j82w-28jv-3pmj.yml
- PACKAGE https://github.com/sporkmonger/addressable
- WEB https://github.com/sporkmonger/addressable/releases/tag/addressable-2.9.1
Source records: GHSA-j82w-28jv-3pmj (OSV.dev) · EPSS by FIRST, 2026-11-26.