VDB
Sign up
MEDIUM5.3

GO-2026-6789

kin-openapi spec loader panics on a self-referential additionalProperties $ref (nil-pointer DoS) in github.com/getkin/kin-openapi

Quick fix

GO-2026-6789 — github.com/getkin/kin-openapi: upgrade to the fixed version with the command below.

go get github.com/getkin/kin-openapi@v0.145.0

Details

kin-openapi spec loader panics on a self-referential additionalProperties $ref (nil-pointer DoS) in github.com/getkin/kin-openapi

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/getkin/kin-openapi
Introduced in: 0Fixed in: 0.145.0
Fixgo get github.com/getkin/kin-openapi@v0.145.0

References