CVE-2026-100351 PUBLISHED

kin-openapi: ValidationHandler security-requirement bypass via encoded-path operation confusion

Assigner: GitHub_M
Reserved: 25.09.2026 Published: 15.10.2026 Updated: 15.10.2026

kin-openapi is a Go project for handling OpenAPI files. From 0.144.0 until 0.147.0, openapi3filter.ValidationHandler validates an operation selected from decoded URL.Path while a downstream gorilla/mux router configured with UseEncodedPath can dispatch a different operation selected from URL.RawPath. When a public exact route and a protected parameterized route use the same method and overlap after decoding, an unauthenticated remote request containing an encoded path separator can be validated as public and then dispatched to the protected handler without invoking the configured AuthenticationFunc. The reachable path parameter is constrained to an encoded representation that decodes to the public literal route, and proxies that canonicalize the URI before forwarding prevent this specific mismatch. This issue is fixed in version 0.147.0.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS Score: 7.4

Product Status

Vendor getkin
Product kin-openapi
Versions
  • Version >= 0.144.0, < 0.147.0 is affected

References

Problem Types

  • CWE-289: Authentication Bypass by Alternate Name CWE
  • CWE-436: Interpretation Conflict CWE