Addressable::Template#match and #extract take variable names from the URI, so a URI can add or reassign variables
Affected
| Package | Affected versions | Fixed in |
|---|---|---|
| rubygems:addressable | >= 2.3.0, <= 2.9.2 | 2.10.0 |
Addressable::Template#match and #extract take the name of a variable in a ;, ? or & expression from the URI, not from the template, when the variable isn't exploded. The template /search{?q} matches /search?admin=true and gives {"q" => nil, "admin" => "true"}: the mapping has a variable the template doesn't have, and q is missing its value. The URI can also give its value to another of the template's variables, which takes the first value it's given. /files{;version}/{id} matches /files;id=secr…
Read on GitHub Advisory Database
On 12/02/2026, 08:36 AM, GitHub Advisory Database published "Addressable::Template#match and #extract take variable names from the URI, so a URI can add or reassign variables" (type: Advisory). Severity is "Low" (low). Related technologies: Ruby. CVE: CVE-2026-141524.