Addressable: Regular Expression Denial of Service in Addressable templates on MRI Ruby 3.2 and TruffleRuby
Affected
| Package | Affected versions | Fixed in |
|---|---|---|
| rubygems:addressable | >= 2.9.1, <= 2.9.2 | 2.10.0 |
Addressable 2.9.1 changed the regular expressions generated for URI templates to fix GHSA-9f42-57jx-vpp3 and GHSA-4w5q-wg7v-w6gp. The new regular expressions contain lookaround assertions for some expressions, such as {a}{b}, {a,b}, {/a,b}, {?a,b} and expressions with an exploded variable followed by unexploded ones. MRI Ruby 3.2 doesn't memoize a regular expression that contains a lookaround, and memoization is decided for the whole template's regular expression, so one such expression makes t…
Read on GitHub Advisory Database
On 12/02/2026, 08:38 AM, GitHub Advisory Database published "Addressable: Regular Expression Denial of Service in Addressable templates on MRI Ruby 3.2 and TruffleRuby" (type: Advisory). Severity is "Medium" (medium). Related technologies: Ruby. CVE: CVE-2026-141525.