CVE-2026-44329: Gin Router Group Missing Auth Middleware

Gin router group $GROUP applies routes via applyRoutes without a prior $GROUP.Use(...) authorization middleware registration. Every request to these endpoints is reachable without authentication or authorization. Register an auth middleware (e.g., OAuth bearer-token check) on $GROUP before calling applyRoutes.

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-44329-gin-router-group-missing-auth-middleware --engine opengrep

Description

Gin router group $GROUP applies routes via applyRoutes without a prior $GROUP.Use(...) authorization middleware registration. Every request to these endpoints is reachable without authentication or authorization. Register an auth middleware (e.g., OAuth bearer-token check) on $GROUP before calling applyRoutes.