MEDIUMCVSS v3.1 5.9Vulnerability

CVE-2026-141526

### Impact Within the URI template implementation in Addressable, some templates with exploded variables still generate regular expressions vulnerable to excessive backtracking. GHSA-4w5q-wg7v-w6gp reported expressions with several exploded variables and listed 2.9.1 as patched, but its fix didn't cover these shapes: 1. An exploded expression directly before an expression with exploded variables (e.g., `{a*}{.a*,b*,c}`), which is cubic in the input length. 2. Several exploded variables in a `.` or default expression (e.g., `{.a*,b*,c}`, which is quadratic, or `{c*,d*,a*}`, which is cubic). 3. An unexploded variable between exploded ones in a `?` or `&` expression (e.g., `{?a*,b,c*}`), which is quadratic in the number of members. 4. An exploded variable followed by unexploded ones in a `/`, `.` or default expression (e.g., `{a*,b,c}-`), which is quadratic. A run of members can be divided among the variables in many ways. When `Template#match` or `Template#extract` is called with a maliciously crafted URI, this can result in uncontrolled resource consumption, leading to denial of service. With 2.9.2, `{a*}{.a*,b*,c}` takes over 6 seconds to reject 800 bytes of input on MRI Ruby 2.7, and over 15 seconds on JRuby. Users of the URI parsing capabilities in Addressable but not the URI template matching capabilities are unaffected. Users who only call `Template#expand` are unaffected. ### Affected Versions This vulnerability affects Addressable >= 2.3.0 (note: 2.3.0 and 2.3.1 were yanked; the earliest installable release is 2.3.2), including 2.9.2. It is fixed in 2.10.0, with two exceptions where matching can still take polynomial time on MRI Ruby < 3.3, JRuby and TruffleRuby: when a processor's `match` method gives a variable its own pattern, since 2.10.0 then keeps every choice open, as earlier versions did, so that the pattern decides the values; and for some templates that combine an exploded variable, or several variables in one expression, with other expressions

Properties

Summary
Addressable: Regular Expression Denial of Service in templates with exploded variables next to other variables
Severity
medium
Nvd fetched at
2026-12-02T06:37:54.190518+00:00
Cvss score
5.9
Cvss severity
MEDIUM
Retrieved at
2026-12-02T06:39:20+00:00
Ghsa published
2026-12-01T23:40:36Z
Source url
https://github.com/advisories/GHSA-xfg6-27c4-wr4r
Ghsa updated
2026-12-01T23:40:37Z
Ghsa id
GHSA-xfg6-27c4-wr4r
Last source
GitHub Advisory Database
Score
5.9
Cvss version
3.1
Cve id
CVE-2026-141526
Cvss vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
First seen by Signal
2026-12-01T22:36:00+00:00
Name
CVE-2026-141526
Is ghsa only
false
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Published at
2026-12-01T21:17:12.320

Related Entities (3)

AFFECTS (1)

HAS_WEAKNESS (1)

VULNERABLE_TO (1)

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-141526 (CVSS v3.1 5.9) — Ninja Signal Threat Intelligence | Ninja Signal