CVE-2026-97394

kin-openapi: Nil-pointer dereference panic in openapi3filter for OpenAPI 3.1 array schemas missing items

Published Oct 15, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
kin-openapi is a Go project for handling OpenAPI files. From 0.136.0 until 0.143.0, openapi3filter accepts OpenAPI 3.1 array schemas without an items keyword and then dereferences the nil Schema.Items value while decoding application/x-www-form-urlencoded or multipart/form-data request bodies, response headers, and other array parameter surfaces. A remote unauthenticated client can reach an affected operation with a nonempty request or matching response and deterministically trigger a nil-pointer panic during ValidateRequest or ValidateResponse. OpenAPI 3.0 documents are not affected because document validation rejects arrays without items, and JSON request bodies use a different decoder path. This issue is fixed in version 0.143.0.

Analysis

AI-generated

Technical impact

A nil-pointer dereference in the openapi3filter package of the kin-openapi library occurs when a Go application processes OpenAPI 3.1 array schemas that miss an "items" keyword. During request or response validation of application/x-www-form-urlencoded or multipart/form-data payloads, the library dereferences a nil Schema.Items pointer, causing a panic and terminating the process. The vulnerability is triggered by a remote unauthenticated client that can send a nonempty request or matching response to an affected operation, leading to a deterministic crash.

Affected Systems

The issue affects the Go library kin-openapi, version 0.136.0 through 0.142.x – any application that imports the library in that range and validates OpenAPI 3.1 schemas containing array parameters without an "items" definition.

Risk and Exploitability

The CVSS score of 7.5 indicates high severity, but the EPSS score of less than 1% suggests exploitation is unlikely at present. The vulnerability is not listed in the CISA KEV catalog. An attacker can exploit the flaw by sending crafted requests to any public endpoint that processes OpenAPI 3.1 schemas with malformed array definitions, leading to an application crash. The problem requires no privilege escalation and can be triggered remotely without authentication.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kin-openapi library to version 0.143.0 or later.
  • Validate all OpenAPI 3.1 array schemas to ensure an "items" definition exists before they are passed to the openapi3filter library.
  • Configure the application or its process manager to recover from panics, for example by adding defer/recover logic or using a supervisor that restarts the service upon crash.

Generated by OpenCVE AI on October 16, 2026 at 21:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-p6wj-qrr4-pgh5 kin-openapi: Nil-pointer dereference panic in openapi3filter for OpenAPI 3.1 array schemas missing items
History
Type Values Removed Values Added
References
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Getkin
Getkin kin-openapi
Vendors & Products Getkin
Getkin kin-openapi
Type Values Removed Values Added
Description kin-openapi is a Go project for handling OpenAPI files. From 0.136.0 until 0.143.0, openapi3filter accepts OpenAPI 3.1 array schemas without an items keyword and then dereferences the nil Schema.Items value while decoding application/x-www-form-urlencoded or multipart/form-data request bodies, response headers, and other array parameter surfaces. A remote unauthenticated client can reach an affected operation with a nonempty request or matching response and deterministically trigger a nil-pointer panic during ValidateRequest or ValidateResponse. OpenAPI 3.0 documents are not affected because document validation rejects arrays without items, and JSON request bodies use a different decoder path. This issue is fixed in version 0.143.0.
Title kin-openapi: Nil-pointer dereference panic in openapi3filter for OpenAPI 3.1 array schemas missing items
Weaknesses CWE-248
CWE-476
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 20, 2026, 2:45 AM
Reserved
Sep 24, 2026, 2:16 PM
Status
Deferred
Published
Oct 15, 2026, 4:18 PM
Modified
Oct 20, 2026, 3:17 AM
Severity
Important
Public date
Oct 15, 2026, 3:29 PM