Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/getkin/kin-openapi
  4. ›
  5. CVE-2026-100351

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

October 15, 2026

openapi3filter.ValidationHandler.Middleware validates requests with kin-openapi’s legacy router, which selects an OpenAPI operation from the decoded URL.Path. The method is documented as implementing gorilla/mux.MiddlewareFunc, but a downstream gorilla/mux router configured with UseEncodedPath() selects its handler from the encoded representation (URL.RawPath).

An unauthenticated request such as /public%2Fstatus can therefore be validated as an intentionally public operation (/public/status) and then dispatched to a protected operation (/{id}). The configured, rejecting AuthenticationFunc is never invoked, and the protected downstream handler runs.

This is distinct from GHSA-r277-6w6q-xmqw. The behavior below uses an explicit authentication callback that rejects missing credentials and remains reproducible after the v0.144.0 fix for the unsafe default callback.

References

  • github.com/advisories/GHSA-23vg-4cjm-66q5
  • github.com/getkin/kin-openapi/commit/eda80e2676e9f577ceed2dd80e64f16083edb041
  • github.com/getkin/kin-openapi/releases/tag/v0.147.0
  • github.com/getkin/kin-openapi/security/advisories/GHSA-23vg-4cjm-66q5
  • nvd.nist.gov/vuln/detail/CVE-2026-100351

Code Behaviors & Features

Detect and mitigate CVE-2026-100351 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 0.144.0 before 0.147.0

Fixed versions

  • 0.147.0

Solution

Upgrade to version 0.147.0 or above.

Impact 7.4 HIGH

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

Learn more about CVSS

Weakness

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

Source file

go/github.com/getkin/kin-openapi/CVE-2026-100351.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 17 Nov 2026 00:15:50 +0000.