Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/getkin/kin-openapi
  4. ›
  5. CVE-2026-100350

CVE-2026-100350: kin-openapi deepObject query decoding repeatedly compiles an invariant regular expression

October 15, 2026

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.

References

  • github.com/advisories/GHSA-h4r5-mxv5-8mjc
  • github.com/getkin/kin-openapi/commit/d090e36b2f1c42c898ba2a687a8f6e25f5ca727f
  • github.com/getkin/kin-openapi/releases/tag/v0.146.0
  • github.com/getkin/kin-openapi/security/advisories/GHSA-h4r5-mxv5-8mjc
  • nvd.nist.gov/vuln/detail/CVE-2026-100350

Code Behaviors & Features

Detect and mitigate CVE-2026-100350 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.145.0 before 0.146.0

Fixed versions

  • 0.146.0

Solution

Upgrade to version 0.146.0 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-1050: Excessive Platform Resource Consumption within a Loop
  • CWE-400: Uncontrolled Resource Consumption
  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

go/github.com/getkin/kin-openapi/CVE-2026-100350.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 17 Oct 2026 00:22:15 +0000.