GO-2026-6095: kin-openapi: ValidationHandler.Load() Fail-Open Authentication Bypass via NoopAuthenticationFunc Default

Published Aug 12, 2026
·
Updated

kin-openapi is a Go project for handling OpenAPI files. Prior to 0.144.0, ValidationHandler.Load() in openapi3filter/validationhandler.go silently replaces a nil AuthenticationFunc with NoopAuthenticationFunc, which returns nil without checking credentials. This substitution causes every OpenAPI security requirement to be satisfied for unauthenticated requests when an application relies on ValidationHandler as its enforcement middleware. The no-op callback prevents the fail-closed ErrAuthenticationServiceMissing path from being reached and forwards the request to protected handlers that may require an API key, OAuth token, or another security scheme. This issue is fixed in version 0.144.0.

Affected Software

1 affected component
go/github.com/getkin/kin-openapi<0.144.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.144.0

Event History

Aug 12, 2026
CVE Published
via OSV·09:23 PM
Data Sourced
via OSV·09:23 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to unauthenticated access?

Applications using kin-openapi before version 0.144.0 are exposed if they rely on ValidationHandler as enforcement middleware and leave its AuthenticationFunc nil. In that configuration, requests can be forwarded to handlers protected by OpenAPI security requirements without credentials being checked.

2

Does exploitation require credentials or user interaction?

No. The issue is remotely exploitable with low attack complexity, requires no privileges or user interaction, and can allow unauthenticated requests to satisfy configured OpenAPI security requirements.

3

What should teams do if they cannot upgrade immediately?

Configure ValidationHandler with a non-nil AuthenticationFunc that validates the applicable credentials and rejects unauthenticated requests. Do not rely on the nil callback behavior, because affected versions replace it with NoopAuthenticationFunc.

4

How can teams determine whether they are affected?

Check whether the application uses github.com/getkin/kin-openapi before 0.144.0 and uses ValidationHandler as its authorization enforcement middleware. Then verify whether AuthenticationFunc is unset or nil; affected versions silently substitute the no-op authentication callback in that case.

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