Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/getkin/kin-openapi
  4. ›
  5. GHSA-r277-6w6q-xmqw

GHSA-r277-6w6q-xmqw: kin-openapi: ValidationHandler.Load() Fail-Open Authentication Bypass via NoopAuthenticationFunc Default

July 24, 2026 (updated July 31, 2026)

ValidationHandler.Load() in getkin/kin-openapi silently replaces a nil AuthenticationFunc with NoopAuthenticationFunc, which always returns nil without performing any credential check. Because this substitution happens unconditionally when the caller omits the field, every OpenAPI security requirement declared in the spec is silently satisfied for unauthenticated requests. An unauthenticated remote attacker can reach handlers for routes whose OpenAPI operation requires an API key, OAuth token, or any other security scheme if the application relies on ValidationHandler as its enforcement middleware.

References

  • github.com/advisories/GHSA-r277-6w6q-xmqw
  • github.com/getkin/kin-openapi/commit/f0407d53b0730280266f454b755010e7eeb985da
  • github.com/getkin/kin-openapi/releases/tag/v0.144.0
  • github.com/getkin/kin-openapi/security/advisories/GHSA-r277-6w6q-xmqw

Code Behaviors & Features

Detect and mitigate GHSA-r277-6w6q-xmqw with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.144.0

Fixed versions

  • 0.144.0

Solution

Upgrade to version 0.144.0 or above.

Impact 9.1 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication

Source file

go/github.com/getkin/kin-openapi/GHSA-r277-6w6q-xmqw.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 08 Aug 2026 00:17:59 +0000.