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


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

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-18313066
  • published26 Jul 2026
  • disclosed24 Jul 2026
  • creditmatiasinsaurralde

Introduced: 24 Jul 2026

New CVE NOT AVAILABLE CWE-476  (opens in a new tab)

How to fix?

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

Overview

Affected versions of this package are vulnerable to NULL Pointer Dereference through the defaultContentParameterDecoder function. An attacker can cause the application to crash or abort request processing by sending a crafted HTTP request that targets an OpenAPI operation with a content parameter whose media type lacks a schema. This is only exploitable if the OpenAPI specification served by the application contains at least one such parameter and the request validation is not protected by a custom AuthenticationFunc or explicit recover() handler.

Workaround

This vulnerability can be mitigated by ensuring every content parameter in served OpenAPI specs declares a schema, supplying a custom ParamDecoder that guards against nil schemas, or running request validation inside a handler with an explicit recover().

CVSS Base Scores

version 4.0
version 3.1