CVE-2026-126352
Addressable is an alternative implementation to the URI …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/sporkmonger/addressable/commit/f2b27b3ab252e56b3fa3519f7ebb491d54cf7b7c
- github.com/sporkmonger/addressable/releases/tag/addressable-2.9.1
- github.com/sporkmonger/addressable/security/advisories/GHSA-9f42-57jx-vpp3
- github.com/rubysec/ruby-advisory-db/blob/master/gems/addressable/GHSA-9f42-57jx-vpp3.yml
- github.com/advisories/GHSA-9f42-57jx-vpp3
- nvd.nist.gov/vuln/detail/CVE-2026-126352
- cve.org/CVERecord?id=CVE-2026-126352
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.