MEDIUMCVSS v3.1 5.3Vulnerability

CVE-2026-100350

### Summary `openapi3filter` decodes `deepObject`-style query parameters by looping over **every** key in the request's query string. Inside that loop it recompiles a **loop-invariant** regular expression on every iteration. The pattern depends only on the spec-defined parameter name, not on the loop variable, so it is compiled `N` times for `N` query keys instead of once. Because the number of query keys is attacker-controlled and unbounded, a single request with many junk query keys forces a proportional number of `regexp.MustCompile` calls, consuming CPU. A handful of concurrent requests can saturate all cores — an uncontrolled-resource-consumption denial of service. This is **not** ReDoS: the pattern is fixed (`^<param>\[`) and matches in linear time. The cost is the **repeated compilation** of an invariant regexp, once per attacker-supplied query key. ### Details In `openapi3filter/req_resp_decoder.go`, the `deepObject` branch of `urlValuesDecoder.DecodeObject` builds a per-parameter property map by iterating over all query keys: ```go case "deepObject": propsFn = func(params url.Values) (map[string]string, error) { props := make(map[string]string) for key, values := range params { // req_resp_decoder.go:689 if !regexp.MustCompile(fmt.Sprintf(`^%s\[`, regexp.QuoteMeta(param))).MatchString(key) { // :690 continue } matches := deepObjectBracketRE.FindAllStringSubmatch(key, -1) ... } ... } ``` The regexp built at `req_resp_decoder.go:690` depends only on `param` — the parameter name defined in the OpenAPI spec — which is **constant** for the whole loop. Yet `regexp.MustCompile(...)` is invoked inside the `for key, values := range params` loop at `req_resp_decoder.go:689`, so it is recompiled once for every key present in the query string. Contrast this with the already-hoisted, package-level regexp used two lines

Properties

Summary
kin-openapi deepObject query decoding repeatedly compiles an invariant regular expression
Severity
medium
Nvd fetched at
2026-10-20T21:14:08.448323+00:00
Epss score
0.00451
Cvss severity
MEDIUM
Cvss score
5.3
Retrieved at
2026-10-21T01:24:48+00:00
Ghsa published
2026-10-15T20:18:15Z
Source url
https://github.com/advisories/GHSA-h4r5-mxv5-8mjc
Ghsa updated
2026-10-15T20:18:16Z
Ghsa id
GHSA-h4r5-mxv5-8mjc
Last source
FIRST EPSS
Cvss version
3.1
Score
5.3
Cve id
CVE-2026-100350
Cvss vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
First seen by Signal
2026-10-15T22:56:51+00:00
Is ghsa only
false
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Published at
2026-10-15T16:17:30.793

Related Entities (5)

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-100350 (CVSS v3.1 5.3) — Ninja Signal Threat Intelligence | Ninja Signal