6661 matches found
Echo's Middleware.Static: `%2F`-encoded Path Bypasses Route/group Middleware Guarding A Statically-served Path
Summary When "middleware.Static" is mounted globally "e.Usemiddleware.Static..." and an application relies on a route- or group-level middleware guard to restrict a path that also falls under the served static root, a "%2F"-encoded request bypasses that guard while the file is still served. This ...
Echo: HTTPS Redirect And HSTS Bypass Via Unconditional Trust Of Forwarded Scheme Headers
Description "Context.Scheme" unconditionally trusts four client-controlled HTTP headers to determine the request scheme, with no mechanism to configure trusted sources. This allows a remote unauthenticated attacker to bypass HTTPS redirect enforcement and suppress HSTS headers. The trusted header...
Echo Has Rate Limiter Bypass Via Spoofed X-Forwarded-For Header In Default Configuration
Summary When "echo.New" is used without explicitly setting "EchoIPExtractor", the "RealIP" method falls back to reading the client-supplied "X-Forwarded-For" or "X-Real-IP" header without any proxy-origin validation. The default "RateLimiter" middleware derives its per-client identifier from...
Echo Has Arbitrary Scheme Injection In WWWRedirect/NonWWWRedirect Middlewares Via X-Forwarded-Proto
Summary The "c.Scheme" method in Echo "context.go:162-181" trusts the "X-Forwarded-Proto", "X-Forwarded-Protocol", and "X-Url-Scheme" request headers without validating that the value is "http" or "https". The "WWWRedirect" and "NonWWWRedirect" middlewares use this unsanitized scheme to construct...
CVE-2026-118260
Echo is a Go web framework. From 4.0.0 until 4.16.1, Echo v4's opt-in BodyDump middleware reads complete request bodies into memory before handlers run and retains complete response bodies for the dump callback without capture limits. An unauthenticated client that can reach a route using BodyDum...
CVE-2026-118261
Echo is a Go web framework. From 4.0.0 until 4.16.1, Echo v4's opt-in Decompress middleware exposes a gzip-decoded request stream without limiting its expanded size. A small compressed request can expand into a very large body when a handler reads or binds it, consuming excessive memory or CPU an...
CVE-2026-118265
Echo is a Go web framework. From 5.0.0 until 5.4.1, Echo v5's ExtractIPFromRealIPHeader validates whether the client-supplied X-Real-IP value belongs to a trusted range instead of validating the direct network peer. A client reaching Echo directly, or through a proxy that preserves the header, ca...
CVE-2026-118262
Echo is a Go web framework. From 4.15.0 until 4.16.1 and 5.4.1, Echo's Proxy middleware can retain a handler, copy goroutines, and network connections after a WebSocket client disconnects when the upstream keeps its connection open. The raw proxy waits for both copy directions without reliably...
CVE-2026-118264
Echo is a Go web framework. From 4.0.0 until 4.16.1 and 5.4.1, Echo's Proxy middleware selects a raw tunnel from a client WebSocket upgrade request before verifying that the configured upstream accepted the upgrade. If the upstream rejects the upgrade with an ordinary keep-alive response, later...
CVE-2026-118263
Echo is a Go web framework. From 5.0.0 until 5.4.1, Echo v5's BodyDump middleware can discard a BodyLimit overflow error for an unknown-length request when BodyDump's capture limit is below the BodyLimit threshold. BodyDump drains the remaining body while ignoring read errors and replaces it with...
Cross-site Scripting (XSS)
Overview Affected versions of this package are vulnerable to Cross-site Scripting XSS via the Context.JSONP and Context.JSONPBlob methods in context.go. An attacker can make a victim’s browser execute arbitrary JavaScript in the site’s origin by sending a request with a crafted callback value tha...
Cross-site Scripting (XSS)
Overview Affected versions of this package are vulnerable to Cross-site Scripting XSS via the Context.JSONP and Context.JSONPBlob methods in context.go. An attacker can make a victim’s browser execute arbitrary JavaScript in the site’s origin by sending a request with a crafted callback value tha...
Reliance on Untrusted Inputs in a Security Decision
Overview Affected versions of this package are vulnerable to Reliance on Untrusted Inputs in a Security Decision via the Context.RealIP method in context.go. When EchoIPExtractor is unset, the default RateLimiter uses ctx.RealIP as its client identifier, and an attacker can evade throttling by...
Reliance on Untrusted Inputs in a Security Decision
Overview github.com/labstack/echo/v5/middleware is a middleware package for echo. Affected versions of this package are vulnerable to Reliance on Untrusted Inputs in a Security Decision via the Context.RealIP method in context.go. When EchoIPExtractor is unset, the default RateLimiter uses...
Reliance on Untrusted Inputs in a Security Decision
Overview Affected versions of this package are vulnerable to Reliance on Untrusted Inputs in a Security Decision via the Context.RealIP method in context.go. When EchoIPExtractor is unset, the default RateLimiter uses ctx.RealIP as its client identifier, and an attacker can evade throttling by...
Reliance on Untrusted Inputs in a Security Decision
Overview github.com/labstack/echo/v4/middleware is a middleware package for echo. Affected versions of this package are vulnerable to Reliance on Untrusted Inputs in a Security Decision via the Context.RealIP method in context.go. When EchoIPExtractor is unset, the default RateLimiter uses...
Directory Traversal
Overview github.com/labstack/echo/v5/middleware is a middleware package for echo. Affected versions of this package are vulnerable to Directory Traversal via the static middleware in middleware/static.go. An attacker can cause a file under a guarded route to be served by sending a double-encoded...
Directory Traversal
Overview github.com/labstack/echo/v4/middleware is a middleware package for echo. Affected versions of this package are vulnerable to Directory Traversal via the StaticDirectoryHandler and Static middleware in Echo’s static file serving. An unauthenticated attacker can read files protected by...
Directory Traversal
Overview Affected versions of this package are vulnerable to Directory Traversal via the StaticDirectoryHandler and Static middleware in Echo’s static file serving. An unauthenticated attacker can read files protected by route-level middleware by requesting a public static path containing encoded...
Directory Traversal
Overview Affected versions of this package are vulnerable to Directory Traversal via the StaticDirectoryHandler and Static middleware in Echo’s static file serving. An unauthenticated attacker can read files protected by route-level middleware by requesting a public static path containing encoded...