NULL Pointer Dereference Affecting github.com/getkin/kin-openapi/openapi3filter package, versions <0.146.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.37% (30th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMGETKINKINOPENAPIOPENAPI3FILTER-21196824
  • published18 Oct 2026
  • disclosed16 Oct 2026
  • creditUnknown

Introduced: 16 Oct 2026

NewCVE-2026-100349  (opens in a new tab)
CWE-476  (opens in a new tab)

How to fix?

Upgrade github.com/getkin/kin-openapi/openapi3filter to version 0.146.0 or higher.

Overview

Affected versions of this package are vulnerable to NULL Pointer Dereference through the ValidateResponse process when a response header is declared with content instead of schema. An attacker can cause a process crash by sending a request to an affected endpoint, resulting in a nil pointer dereference during header validation. This is only exploitable if the OpenAPI specification includes a response header with content but omits the schema field.

Workaround

This vulnerability can be mitigated by using schema on the response header or skipping ValidateResponse for those operations.

CVSS Base Scores

version 4.0
version 3.1