CVE-2026-126352: Addressable: Regular Expression Denial of Service in templates with multiple variables
Published 2026-11-12 · Updated 2026-11-12 · Also known as GHSA-9f42-57jx-vpp3
Summary
The Addressable Ruby library contains a Regular Expression Denial of Service (ReDoS) vulnerability in its URI template matching logic. Users of the library who leverage Template#match or Template#extract with user-supplied input should upgrade to version 2.9.1 or later.
Who is affected
The vulnerability affects applications using Addressable versions 2.3.0 through 2.9.0 when processing untrusted input against URI templates containing multiple variables. It occurs due to excessive backtracking in specific regular expression patterns, which can lead to CPU exhaustion and service denial on affected Ruby runtimes, including MRI Ruby < 3.3, JRuby, and specific configurations of TruffleRuby.
Exploitability
The vulnerability is rated as medium severity with a CVSS score of 5.9, reflecting a high complexity requirement for exploitation. While the EPSS score of 0.004 suggests a low probability of widespread automated exploitation, the flaw is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade the addressable gem to version 2.9.1 or newer.
- If upgrading is not immediately possible, apply a timeout to all calls to Template#match or Template#extract.
- Migrate to MRI Ruby 3.3 or later if the application is not dependent on JRuby or TruffleRuby.
How to check your project
- Check the Gemfile.lock file in your Ruby project for 'addressable' versions between 2.3.0 and 2.9.0.
- Use 'bundle info addressable' to verify the currently installed version of the gem in your environment.
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
Are all users of the addressable gem affected?
No. Only users who specifically utilize the URI template matching capabilities (e.g., Template#match or Template#extract) with untrusted input are vulnerable. Users only utilizing URI parsing or Template#expand are not affected.
Why are newer Ruby versions immune to this issue?
MRI Ruby 3.3 and later versions introduced improvements to the regular expression engine, specifically memoization for the complex patterns generated by the library, which prevents the exponential backtracking behavior.
Is this vulnerability actively exploited?
There is no evidence of active exploitation at this time, as the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
Original advisory description
References
- WEB https://github.com/sporkmonger/addressable/security/advisories/GHSA-9f42-57jx-vpp3
- WEB https://github.com/sporkmonger/addressable/commit/f2b27b3ab252e56b3fa3519f7ebb491d54cf7b7c
- WEB https://github.com/rubysec/ruby-advisory-db/blob/master/gems/addressable/GHSA-9f42-57jx-vpp3.yml
- PACKAGE https://github.com/sporkmonger/addressable
- WEB https://github.com/sporkmonger/addressable/releases/tag/addressable-2.9.1
Source records: GHSA-9f42-57jx-vpp3 (OSV.dev) · EPSS by FIRST, 2026-11-26.