## Addressable::Template#match and #extract take variable names from the URI, so a URI can add or reassign variables

- 種別: advisory
- 重大度: low
- 関連技術: ruby
- CVE: CVE-2026-141524
- 公開日時: 2026-12-01T23:36:55.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-q5vw-6v74-fg2g)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-q5vw-6v74-fg2g

影響: 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…