CVE-2026-100349

kin-openapi openapi3filter: nil-pointer panic in ValidateResponse on a response header declared with content

Published Oct 15, 2026 CVSS 4.0 · 8.2 High EPSS < 1% KEV · Not listed
Description
kin-openapi is a Go project for handling OpenAPI files. Prior to 0.146.0, openapi3filter.ValidateResponse passes a nil response header schema to decodeValue when an OpenAPI document declares the header with content instead of schema. The document passes validation, but every response validation for the affected operation dereferences the nil schema and panics even when the response does not contain the declared header. Applications that ingest an untrusted specification can expose this as remote availability impact, while applications using only trusted local specifications still crash when the affected operation is exercised. This issue is fixed in version 0.146.0.

Analysis

AI-generated

Technical impact

The vulnerability is a nil-pointer dereference in kin-openapi's openapi3filter.ValidateResponse. When an OpenAPI document declares a response header with content instead of a schema, the validation routine passes a nil schema to decodeValue, causing a panic that crashes the application during response validation, even if the header is absent. The flaw does not modify the response data itself, but it results in a loss of availability whenever the affected operation is exercised.

Affected Systems

The issue impacts the getkin:kin-openapi library, affecting all releases prior to version 0.146.0.

Risk and Exploitability

The CVSS score of 8.2 signals a high severity problem. The EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog, but the potential impact remains significant. Based on the description, it is inferred that an attacker can supply a malicious OpenAPI specification that includes a response header declared with content. The resulting nil-pointer panic causes the application to crash, providing a remote denial-of-service condition. Exploitation requires the ability to insert or alter the OpenAPI document processed by the application.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade kin-openapi to version 0.146.0 or later, which removes the nil-pointer dereference.
  • Restrict the OpenAPI specifications your application processes to trusted sources and validate them before use to ensure all headers are defined with schemas.
  • If an upgrade is not immediately possible, wrap calls to ValidateResponse in a recover block or otherwise handle potential panics to prevent the application from crashing until a patch is applied.

Generated by OpenCVE AI on October 16, 2026 at 06:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-74vm-87hj-r66f kin-openapi openapi3filter: nil-pointer panic in ValidateResponse on a response header declared with content
History
Type Values Removed Values Added
First Time appeared Getkin
Getkin kin-openapi
Vendors & Products Getkin
Getkin kin-openapi
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
References
Metrics threat_severity

None

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'}

threat_severity

Important

Type Values Removed Values Added
Description kin-openapi is a Go project for handling OpenAPI files. Prior to 0.146.0, openapi3filter.ValidateResponse passes a nil response header schema to decodeValue when an OpenAPI document declares the header with content instead of schema. The document passes validation, but every response validation for the affected operation dereferences the nil schema and panics even when the response does not contain the declared header. Applications that ingest an untrusted specification can expose this as remote availability impact, while applications using only trusted local specifications still crash when the affected operation is exercised. This issue is fixed in version 0.146.0.
Title kin-openapi openapi3filter: nil-pointer panic in ValidateResponse on a response header declared with content
Weaknesses CWE-476
References
Metrics cvssV4_0

{'score': 8.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 16, 2026, 5:13 PM
Reserved
Sep 25, 2026, 7:19 PM
Status
Deferred
Published
Oct 15, 2026, 4:17 PM
Modified
Oct 16, 2026, 6:17 PM
Severity
Important
Public date
Oct 15, 2026, 3:50 PM