CVE-2026-97394: kin-openapi: Nil-pointer dereference panic in openapi3filter for OpenAPI 3.1 array schemas missing items in github.com/getkin/kin-openapi
Published 2026-11-05 · Updated 2026-11-05 · Also known as GHSA-p6wj-qrr4-pgh5, GO-2026-6790
Summary
The kin-openapi library contains a nil-pointer dereference vulnerability triggered by OpenAPI 3.1 array schemas that lack defined items. Developers using this library to parse or validate OpenAPI specifications should update to the patched version to prevent potential application crashes.
Who is affected
This flaw allows an attacker to cause a denial-of-service condition by providing a maliciously crafted OpenAPI 3.1 schema. Any application utilizing the openapi3filter component to process schemas missing the required items field is susceptible to the resulting panic. The impact is limited to service availability during the processing of these specific input structures.
Exploitability
The vulnerability severity is not documented, as no CVSS vector or base score is available. With an EPSS score of 0.006 and no listing in CISA's Known Exploited Vulnerabilities catalog, there is currently no evidence of active exploitation in the wild.
Remediation
- Update the github.com/getkin/kin-openapi package to version 0.143.0 or later.
- Verify that the project dependency tree correctly reflects the updated version to ensure the fix is applied.
How to check your project
- Check the go.mod file for a reference to github.com/getkin/kin-openapi in the range of 0.136.0 up to, but not including, 0.143.0.
- Use the command 'go list -m github.com/getkin/kin-openapi' to identify the exact version currently utilized by your project.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Go | github.com/getkin/kin-openapi |
>= 0.136.0, < 0.143.0 | 0.143.0 | go get github.com/getkin/[email protected] |
FAQ
What specifically triggers the nil-pointer dereference?
The panic occurs in the openapi3filter component when processing an OpenAPI 3.1 array schema that fails to define an 'items' property.
Is this vulnerability being actively exploited?
No, there is no evidence of active exploitation as the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.
What should I do if I am using an affected version?
You should update your project dependency to github.com/getkin/kin-openapi version 0.143.0 immediately to resolve the issue.
Original advisory description
References
- ADVISORY https://github.com/getkin/kin-openapi/security/advisories/GHSA-p6wj-qrr4-pgh5
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-97394
- FIX https://github.com/getkin/kin-openapi/commit/30e292371a89ca6d1f91a9553e0aa518b49f838d
- WEB https://github.com/getkin/kin-openapi/releases/tag/v0.143.0
Source records: GO-2026-6790 (OSV.dev) · EPSS by FIRST, 2026-11-21.