MEDIUMCVSS v3.1 5.9Vulnerability

CVE-2026-141528

### Impact Within the URI template implementation in Addressable, some templates with several variables still generate regular expressions vulnerable to excessive backtracking. GHSA-9f42-57jx-vpp3 reported these templates and listed 2.9.1 as patched, but its fix didn't cover these shapes: 1. An expression followed by text that can start with a comma: a literal comma or another expression (e.g., `{+a,b,c},{+d}` or `{+v1,v2,v3,v4,v5,v6,v7,v8}{c*}`, or, with exploded variables, `{c*,d*},{+a*}`). A run of commas can be divided between the expression's last variable and what follows it in O(n^2) ways, and the cost grows quickly with the number of variables, especially exploded ones. 2. An expression that repeats a variable name (e.g., `{+a,c,c,c}`). Its regular expression is the one 2.9.0 generated, which is cubic in the input length for this example. 3. Expressions next to each other with no literal text between them, where one has several variables (e.g., `{a,b}{c}` or `{a,b}{c,d}{e,f}`). The 2.9.1 fix for this form, GHSA-9f42-57jx-vpp3's third, only covered an expression with one variable followed by another expression. A run of characters can be divided among the adjacent variables in O(n^k) ways. The first two shapes are GHSA-9f42-57jx-vpp3's second form, and behave as they did in 2.9.0. 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, `{+v1,v2,v3,v4,v5,v6,v7,v8}{c*}` takes about 4 seconds to reject 200 bytes of input on MRI Ruby 2.7 and 3.2, and over 15 seconds on JRuby and TruffleRuby, `,{c*,d*,a*},{+a*}.json` takes 3.6 seconds to reject 206 bytes on MRI Ruby 2.7 and 3.2, and over 5 seconds on JRuby, and `{a,b}{c,d}{e,f}` takes 2.6 seconds to reject 1 KB 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

Properties

Summary
Addressable: Regular Expression Denial of Service in templates with several 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:47:52Z
Source url
https://github.com/advisories/GHSA-xj9m-f88p-5j38
Ghsa updated
2026-12-01T23:47:52Z
Ghsa id
GHSA-xj9m-f88p-5j38
Last source
GitHub Advisory Database
Score
5.9
Cvss version
3.1
Cve id
CVE-2026-141528
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-141528
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.670

Related Entities (3)

AFFECTS (1)

HAS_WEAKNESS (1)

VULNERABLE_TO (1)

Related research

Explore deeper with Ninja Signal's threat intelligence graph

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