REDHAT-BUG-2521202: Medium severity go/github.com/getkin/kin-openapi vulnerability

Published Aug 21, 2026
·
Updated

kin-openapi is a Go project for handling OpenAPI files. From 0.10.0 until 0.141.0, openapi3filter.convertParseError in openapi3filter/validationerrorencoder.go dereferences e.Parameter.In without checking whether e.Parameter is nil. A malformed non-string scalar field in a multipart/form-data request body produces a nested ParseError with a nil RequestError.Parameter, and applications that render the validation error through openapi3filter.ConvertErrors or ValidationErrorEncoder panic. An unauthenticated client can repeatedly send such requests to deny service when the application lacks a recovery boundary. JSON request bodies and applications that do not use these error-rendering helpers are not affected. This issue is fixed in version 0.141.0.

Affected Software

1 affected component
go/github.com/getkin/kin-openapi>=0.10.0<0.141.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade kin-openapi to a version that resolves this vulnerability.

    Fixed in 0.141.0

Event History

Aug 21, 2026
Data Sourced
via Red Hat·09:01 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which applications are exposed to denial of service?

Applications using affected kin-openapi versions are exposed when they accept multipart/form-data requests, encounter malformed non-string scalar fields, and render validation failures through openapi3filter.ConvertErrors or ValidationErrorEncoder. JSON request bodies and applications that do not use these error-rendering helpers are not affected.

2

Does an attacker need authentication or special access?

No. An unauthenticated client can repeatedly submit the malformed multipart/form-data requests to trigger a panic and deny service, provided the application has no recovery boundary.

3

What versions are affected and what version fixes the issue?

The issue affects versions from 0.10.0 until 0.141.0. It is fixed in version 0.141.0.

4

What can reduce impact if upgrading is not immediately possible?

Avoid using openapi3filter.ConvertErrors or ValidationErrorEncoder for affected multipart/form-data validation errors, or ensure the application has a recovery boundary so a panic does not terminate service.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203