kin-openapi: Nil-pointer dereference panic in openapi3filter for OpenAPI 3.1 array schemas missing items
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-97394
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 03:49 UTC · Revision 1
Source evidence
kin-openapi: Nil-pointer dereference panic in openapi3filter for OpenAPI 3.1 array schemas missing items
core-osv · Original sourcePublished 15 Oct 2026, 15:29 UTC
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.
osv:CVE-2026-97394
Complete source record
{
"id": "b1cd36e872c05853ff201298cd4ebaa7de5832b3b17af4020f4f7ddfd724954e",
"url": "https://osv.dev/vulnerability/CVE-2026-97394",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "kin-openapi: Nil-pointer dereference panic in openapi3filter for OpenAPI 3.1 array schemas missing items",
"summary": "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.",
"evidence": "osv:CVE-2026-97394",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-97394",
"aliases": [
"CVE-2026-97394",
"GHSA-p6wj-qrr4-pgh5"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/getkin/kin-openapi",
"type": "GIT",
"events": [
{
"introduced": "ff4bce724cfa3fdf6fac4470c76a8511662b21f6"
},
{
"fixed": "30e292371a89ca6d1f91a9553e0aa518b49f838d"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0.136.0"
},
{
"fixed": "0.143.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "30e292371a89ca6d1f91a9553e0aa518b49f838d"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "30e292371a89ca6d1f91a9553e0aa518b49f838d"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v0.143.0"
},
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.143.0"
}
],
"source": "DESCRIPTION"
}
]
}
}
],
"versions": [
"v0.142.0",
"v0.141.0",
"v0.140.0",
"v0.139.0",
"v0.138.0",
"v0.137.0",
"v0.136.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-97394.json"
}
}
],
"modified": "2026-10-28T02:30:32.828885456Z",
"provider": "osv",
"references": [
"https://github.com/getkin/kin-openapi/releases/tag/v0.143.0",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/97xxx/CVE-2026-97394.json",
"https://github.com/getkin/kin-openapi/security/advisories/GHSA-p6wj-qrr4-pgh5",
"https://nvd.nist.gov/vuln/detail/CVE-2026-97394",
"https://github.com/getkin/kin-openapi/commit/30e292371a89ca6d1f91a9553e0aa518b49f838d",
"https://github.com/opnsense/core/security/advisories/GHSA-26cj-h9rj-g5pf"
],
"provider_metadata": {
"cwe_ids": [
"CWE-248",
"CWE-476"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/97xxx/CVE-2026-97394.json"
}
},
"related_cves": [
{
"value": "CVE-2026-97394",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 500108,
"published_at": "2026-10-15T15:29:05.238+00:00"
}