Vulnerability in github.com/getkin/kin-openapi
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as CVE-2026-77354 has been found in github.com/getkin/kin-openapi.
Attackers can target a specific entry point like GET /whatever over the network to misuse the product.
Risk of unauthorized operations or information disclosure.
What to do: upgrade github.com/getkin/kin-openapi to 0.142.0 or later.
If unsure, ask your IT team or search "github.com/getkin/kin-openapi CVE-2026-77354" on the vendor's site.
CVE-2026-77354 (github.com/getkin/kin-openapi) — CWE-400
Attack surface: GET /whatever / openapi3filter / deepObject / maxItems
Patched: 0.142.0 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (CWE-400) exists in github.com/getkin/kin-openapi. Attackers reach the vulnerable code path via GET /whatever.
Check the vendor advisory for the affected versions of github.com/getkin/kin-openapi. Attack surface: GET /whatever / openapi3filter / deepObject / maxItems.
Severity: ?. Risk of unauthorized operations or information disclosure.
Update to 0.142.0.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual GET /whatever requests with malformed payloads or SQL meta-characters. Run grep -r 'github.com/getkin/kin-openapi' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'github.com/getkin/kin-openapi' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/getkin/kin-openapiを grep し、稼働しているサービス・バージョンを把握する。 -
2
Hunt for indicators of compromisedetect
grep 'GET /whatever' /var/log/nginx/access.log | grep -E '(unusual_payload|sqli_pattern)'アクセスログで
GET /whateverへの異常なリクエスト (不正な認証ヘッダ・SQLメタ文字)を過去 30〜90日分捜索。WAF/SIEM があれば該当パスのアラート発火履歴を確認。 -
3
Apply patchpatch
Upgrade github.com/getkin/kin-openapi to 0.142.0ステージング環境で 0.142.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 2 で見つけた異常検知の続報チェックを含めること。
-
4
Post-deployment verificationverify
Replay attack against GET /whatever on staging to confirm patch closes the vectorパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 2 と同じログクエリでアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| gogithub.com/getkin/kin-openapi |
≥ 0.124.0, < 0.142.0→ 0.142.0 |
0.142.0 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-77354 golang-github-getkin-kin-openapi No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-77354 golang-github-getkin-kin-openapi No fixed version in this record
Original description The description as published by the source.
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.
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- patch github.com
- web github.com
- web github.com