CVE-2026-77354

High

Description

kin-openapi is a Go project for handling OpenAPI files. From 0.124.0 until 0.142.0, openapi3filter.sliceMapToSlice in openapi3filter/req_resp_decoder.go converts attacker-controlled sparse indexes from a deepObject query parameter into a dense slice by allocating entries from zero through the largest supplied index, after which buildResObj creates another slice of the same length. This allocation occurs before schema validation, so maxItems does not prevent it. An unauthenticated client can send a small query such as param[items][50000000]=x to an endpoint whose deepObject schema contains an array, forcing multi-gigabyte heap allocation and causing an OOM kill or restart loop. Other request-body encodings and styled parameters that do not produce bracketed integer indexes are not affected. This issue is fixed in version 0.142.0.

SeverityHigh
CVSS8.7
Exploit probability—
ProductGithub.com/getkin/kin-openapi
PublishedAug 21, 2026
First seenAug 21, 2026

How to fix

Update
  • github.com/getkin/kin-openapi0.142.0 or later

Affected products

ProductAffected versionsFixed in
github.com/getkin/kin-openapiGo0.124.0 ≤ v < 0.142.00.142.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.