CVE-2026-118681

go-chi chi before 5.5.0 Authentication Bypass via SupressNotFound Middleware

Published Oct 28, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
go-chi chi before 5.5.0 contains an authentication bypass in middleware.SupressNotFound, which calls Match with the live routing context and leaves a mounted router's parameter and child suffix in place for dispatch against the outer router. Unauthenticated attackers can request a mounted path whose suffix matches an outer public route, skipping the mounted authentication middleware and retrieving tenant-scoped data when that outer handler trusts the retained mount parameter.

Analysis

AI-generated

Technical impact

The vulnerability resides in the SupressNotFound middleware of the go-chi chi router. It incorrectly uses the routing context during a Match call, leaving a mounted router’s parameter and child suffix in place for the outer router. This allows an unauthenticated attacker to request a path that is mounted but whose suffix coincides with a public outer route, thereby skipping the authentication middleware that protects the mounted router and exposing tenant‑specific data. The weakness is a classic authentication bypass linked to CWE‑288 and CWE‑305.

Affected Systems

All deployments of the go‑chi chi router using versions prior to 5.5.0 are vulnerable because the middleware flaw exists in those releases.

Risk and Exploitability

The CVSS score of 6.3 indicates moderate severity. The EPSS score of 0.244% reflects a low to moderate exploitation probability, suggesting the vulnerability could be targeted but is not considered a high‑probability exploit. The issue is not listed in CISA’s KEV catalog. An attacker simply crafts a request to a mounted path whose suffix matches an outer public route; no special privileges are required. If such a route exists, authentication checks are bypassed and tenant data can be retrieved. The weakness is documented as CWE‑288 and CWE‑305 and represents a tangible risk for environments that expose such routes to external networks.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the go-chi library to version 5.5.0 or later, which removes the vulnerable logic in SupressNotFound.
  • Review mounted routes to ensure that any path served by a mounted router does not share a suffix with an outer public route, and adjust routing configuration accordingly.
  • Implement an additional authentication guard or request‑validation middleware that explicitly checks for authenticated sessions before handling tenant‑scoped data, providing a defensive fallback if the primary middleware is bypassed.

Generated by OpenCVE AI on October 30, 2026 at 02:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Go-chi
Go-chi chi
Vendors & Products Go-chi
Go-chi chi
Type Values Removed Values Added
Description go-chi chi before 5.5.0 contains an authentication bypass in middleware.SupressNotFound, which calls Match with the live routing context and leaves a mounted router's parameter and child suffix in place for dispatch against the outer router. Unauthenticated attackers can request a mounted path whose suffix matches an outer public route, skipping the mounted authentication middleware and retrieving tenant-scoped data when that outer handler trusts the retained mount parameter.
Title go-chi chi before 5.5.0 Authentication Bypass via SupressNotFound Middleware
Weaknesses CWE-288
References
Metrics cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N'}

cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-288

    Authentication Bypass Using an Alternate Path or Channel

  • CWE-305

    Authentication Bypass by Primary Weakness

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 3, 2026, 1:22 PM
Reserved
Oct 28, 2026, 5:28 PM
Status
Deferred
Published
Oct 28, 2026, 7:17 PM
Modified
Nov 3, 2026, 2:17 PM
Severity
Low
Public date
Oct 28, 2026, 6:59 PM