BREW-UFFIZZI-CVE-2026-141524 (GHSA-Q5VW-6V74-FG2G)
Vulnerability from osv_homebrew – Published: 2026-12-02 12:37 – Updated: 2026-12-02 12:37 – Source websiteImpact
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=secret/42 and gives id the value "secret", not the 42 in its place in the path.
A URI Template can only expand such a variable to its own name followed by = (Sections 3.2.7 to 3.2.9 of RFC 6570), and matching assigns the parts of a URI "to the named variables" (Section 1.4). So these URIs aren't expansions of the template, and the mappings name variables that the URI's text doesn't give them.
An application is affected if it matches an untrusted URI against a template with an unexploded ;, ? or & expression, and does one of these:
- uses the mapping's names as a list of the parameters it accepts, for example by passing the whole mapping on to set attributes or to build a database query;
- trusts that a variable's value comes from where the template puts it, as with a
;expression before a path variable; - uses a processor whose
restoreacts on a value by its name, such as recording an identifier.restoreis called with the name the URI gives, so a query parameter can makerestoreact again for a variable the template takes from the path. The processor then records the query's value, while the mapping keeps the path's; - relies on a processor's
matchpattern to restrict the value of such a variable. Another expression's variable can take the text and give it the restricted variable's name, so the pattern isn't applied.
Exploded variables, such as {?q*}, aren't affected: the names they take from the URI are kept inside the variable's value. Templates without ;, ? or & expressions aren't affected, and neither is #expand.
Affected Versions
This vulnerability affects Addressable >= 2.3.0, the first version with RFC 6570 templates. Before 2.3.6, a URI can only add variables to the mapping, which then leaves out the variable whose value the URI took; giving a value to another of the template's variables, and the processor case, start with 2.3.6. It is fixed in 2.10.0, where an unexploded ;, ? or & expression only matches its own variables' names, so these URIs don't match. A processor's match pattern for such a variable then matches only its value, as documented, not the name and = as well, and restore is only called with the template's names.
Workarounds
- After matching, keep only the template's variables, and accept the URI only if they expand back to it. This rejects every URI above. It also rejects some that differ only in how they're written, such as a query with the names in a different order.
- Check a processor's restrictions on a variable's value in
restore, not only inmatch. - Don't act on values in a processor's
restore, such as by recording them. Act on the mapping after it passes the check above.
Proof of Concept
require "addressable/template"
search = Addressable::Template.new("/search{?q}")
p search.extract("/search?admin=true")
files = Addressable::Template.new("/files{;version}/{id}")
p files.extract("/files;id=secret/42")
# Workaround: keep only the template's variables, and accept the URI only
# if they expand back to it.
def extract_strictly(template, uri)
mapping = template.extract(uri)
return nil unless mapping
mapping = mapping.select { |name, _| template.variables.include?(name) }
template.expand(mapping).to_s == uri ? mapping : nil
end
p extract_strictly(search, "/search?admin=true")
p extract_strictly(files, "/files;id=secret/42")
p extract_strictly(files, "/files;version=2/42")
Affected versions print:
{"q" => nil, "admin" => "true"}
{"version" => nil, "id" => "secret"}
nil
nil
{"version" => "2", "id" => "42"}
Fixed versions print:
nil
nil
nil
nil
{"version" => "2", "id" => "42"}
Credits
Found by Bob Aman (@sporkmonger).
For more information
If there are any questions or comments about this advisory: * Open an issue
{
"affected": [
{
"ecosystem_specific": {
"fix": null,
"range_state": "affected",
"resource": "addressable",
"resource_purl": "pkg:gem/addressable@2.8.7",
"upstream_fixed_in": "2.10.0"
},
"package": {
"ecosystem": "Homebrew",
"name": "uffizzi",
"purl": "pkg:brew/uffizzi"
},
"ranges": [
{
"events": [
{
"introduced": "2.3.4"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"confidence": "high",
"source": "matched",
"strategy": "registry",
"upstream_evidence": [
{
"ecosystem": "RubyGems",
"key": "pkg:gem/addressable@2.8.7",
"name": "addressable",
"resource": "addressable",
"strategy": "registry",
"subject_version": "2.8.7"
}
]
},
"details": "### Impact\n\n`Addressable::Template#match` and `#extract` take the name of a variable in a `;`, `?` or `\u0026` expression from the URI, not from the template, when the variable isn\u0027t exploded. The template `/search{?q}` matches `/search?admin=true` and gives `{\"q\" =\u003e nil, \"admin\" =\u003e \"true\"}`: the mapping has a variable the template doesn\u0027t have, and `q` is missing its value. The URI can also give its value to another of the template\u0027s variables, which takes the first value it\u0027s given. `/files{;version}/{id}` matches `/files;id=secret/42` and gives `id` the value `\"secret\"`, not the `42` in its place in the path.\n\nA URI Template can only expand such a variable to its own name followed by `=` (Sections 3.2.7 to 3.2.9 of RFC 6570), and matching assigns the parts of a URI \"to the named variables\" (Section 1.4). So these URIs aren\u0027t expansions of the template, and the mappings name variables that the URI\u0027s text doesn\u0027t give them.\n\nAn application is affected if it matches an untrusted URI against a template with an unexploded `;`, `?` or `\u0026` expression, and does one of these:\n\n- uses the mapping\u0027s names as a list of the parameters it accepts, for example by passing the whole mapping on to set attributes or to build a database query;\n- trusts that a variable\u0027s value comes from where the template puts it, as with a `;` expression before a path variable;\n- uses a processor whose `restore` acts on a value by its name, such as recording an identifier. `restore` is called with the name the URI gives, so a query parameter can make `restore` act again for a variable the template takes from the path. The processor then records the query\u0027s value, while the mapping keeps the path\u0027s;\n- relies on a processor\u0027s `match` pattern to restrict the value of such a variable. Another expression\u0027s variable can take the text and give it the restricted variable\u0027s name, so the pattern isn\u0027t applied.\n\nExploded variables, such as `{?q*}`, aren\u0027t affected: the names they take from the URI are kept inside the variable\u0027s value. Templates without `;`, `?` or `\u0026` expressions aren\u0027t affected, and neither is `#expand`.\n\n### Affected Versions\n\nThis vulnerability affects Addressable \u003e= 2.3.0, the first version with RFC 6570 templates. Before 2.3.6, a URI can only add variables to the mapping, which then leaves out the variable whose value the URI took; giving a value to another of the template\u0027s variables, and the processor case, start with 2.3.6. It is fixed in 2.10.0, where an unexploded `;`, `?` or `\u0026` expression only matches its own variables\u0027 names, so these URIs don\u0027t match. A processor\u0027s `match` pattern for such a variable then matches only its value, as documented, not the name and `=` as well, and `restore` is only called with the template\u0027s names.\n\n### Workarounds\n\n- After matching, keep only the template\u0027s variables, and accept the URI only if they expand back to it. This rejects every URI above. It also rejects some that differ only in how they\u0027re written, such as a query with the names in a different order.\n- Check a processor\u0027s restrictions on a variable\u0027s value in `restore`, not only in `match`.\n- Don\u0027t act on values in a processor\u0027s `restore`, such as by recording them. Act on the mapping after it passes the check above.\n\n### Proof of Concept\n\n```ruby\nrequire \"addressable/template\"\n\nsearch = Addressable::Template.new(\"/search{?q}\")\np search.extract(\"/search?admin=true\")\n\nfiles = Addressable::Template.new(\"/files{;version}/{id}\")\np files.extract(\"/files;id=secret/42\")\n\n# Workaround: keep only the template\u0027s variables, and accept the URI only\n# if they expand back to it.\ndef extract_strictly(template, uri)\n mapping = template.extract(uri)\n return nil unless mapping\n mapping = mapping.select { |name, _| template.variables.include?(name) }\n template.expand(mapping).to_s == uri ? mapping : nil\nend\np extract_strictly(search, \"/search?admin=true\")\np extract_strictly(files, \"/files;id=secret/42\")\np extract_strictly(files, \"/files;version=2/42\")\n```\n\nAffected versions print:\n\n```\n{\"q\" =\u003e nil, \"admin\" =\u003e \"true\"}\n{\"version\" =\u003e nil, \"id\" =\u003e \"secret\"}\nnil\nnil\n{\"version\" =\u003e \"2\", \"id\" =\u003e \"42\"}\n```\n\nFixed versions print:\n\n```\nnil\nnil\nnil\nnil\n{\"version\" =\u003e \"2\", \"id\" =\u003e \"42\"}\n```\n\n### Credits\n\nFound by Bob Aman (@sporkmonger).\n\n### For more information\n\nIf there are any questions or comments about this advisory:\n* [Open an issue](https://github.com/sporkmonger/addressable/issues)",
"id": "BREW-uffizzi-CVE-2026-141524",
"modified": "2026-12-02T12:37:04Z",
"published": "2026-12-02T12:37:04Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/sporkmonger/addressable/security/advisories/GHSA-q5vw-6v74-fg2g"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-141524"
},
{
"type": "WEB",
"url": "https://github.com/sporkmonger/addressable/commit/de9e4048f65b2fed2ed6a0b020f41dad77fe53f5"
},
{
"type": "PACKAGE",
"url": "https://github.com/sporkmonger/addressable"
},
{
"type": "WEB",
"url": "https://github.com/sporkmonger/addressable/releases/tag/addressable-2.10.0"
}
],
"schema_version": "1.7.3",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N",
"type": "CVSS_V3"
}
],
"summary": "Addressable::Template#match and #extract take variable names from the URI, so a URI can add or reassign variables",
"upstream": [
"GHSA-q5vw-6v74-fg2g",
"CVE-2026-141524"
]
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.