Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/getkin/kin-openapi
  4. ›
  5. CVE-2026-97394

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

October 15, 2026

A nil-pointer dereference in openapi3filter lets any unauthenticated client crash a request handler with a single HTTP request against an OpenAPI 3.1 operation that declares type: array without items. OpenAPI 3.1 (JSON Schema 2020-12) permits omitting items, and doc.Validate() accepts such schemas with Schema.Items == nil. Request/response decoders then dereference Items with no nil check. The panic is deterministic (100%) on every request to the affected operation. There is no recover() in openapi3filter; under handlers without per-request recover the process can exit.

References

  • github.com/advisories/GHSA-p6wj-qrr4-pgh5
  • github.com/getkin/kin-openapi/commit/30e292371a89ca6d1f91a9553e0aa518b49f838d
  • github.com/getkin/kin-openapi/releases/tag/v0.143.0
  • github.com/getkin/kin-openapi/security/advisories/GHSA-p6wj-qrr4-pgh5
  • nvd.nist.gov/vuln/detail/CVE-2026-97394

Code Behaviors & Features

Detect and mitigate CVE-2026-97394 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.136.0 before 0.143.0

Fixed versions

  • 0.143.0

Solution

Upgrade to version 0.143.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-248: Uncaught Exception
  • CWE-476: NULL Pointer Dereference

Source file

go/github.com/getkin/kin-openapi/CVE-2026-97394.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 17 Oct 2026 00:21:42 +0000.