CriticalGHSA-crxj-hrmp-4rwfCVE-2022-40083GO-2022-1031
Labstack Echo Open Redirect vulnerability
Published 29 Sept 2022 · Updated 8 Nov 2023
Is your project on an affected github.com/labstack/echo/v4?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <4.9.0
- Fixed in
- 4.9.0
Update to the fixed version for your release line, for example:
go get github.com/labstack/echo/v4@v4.9.0Details
Labstack Echo v4.8.0 was discovered to contain an open redirect vulnerability via the Static Handler component. This vulnerability can be leveraged by attackers to cause a Server-Side Request Forgery (SSRF). Version 4.9.0 contains a patch for the issue.
Is GHSA-crxj-hrmp-4rwf in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/labstack/echo/v4, and gives you the command that fixes it.
More advisories for github.com/labstack/echo/v4
- LowCVE-2026-118653Rate Limiter Bypass via Spoofed X-Forwarded-For Header in Default Configuration in github.com/labstack/echo · 5 Nov 2026
- LowCVE-2026-118650URL-encoded path bypasses route/group middleware guarding a statically-served path in github.com/labstack/echo · 5 Nov 2026
- LowCVE-2026-118651Reverse Proxy Forwards Attacker-Supplied X-Real-IP to Upstream by Default in github.com/labstack/echo · 5 Nov 2026
- LowCVE-2026-118652Cross-Site Scripting (XSS) via unsanitized JSONP callback in github.com/labstack/echo · 5 Nov 2026
- LowCVE-2026-118266Echo has CSRF Protection Bypass via MethodOverride Rewriting POST to Safe Method in github.com/labstack/echo · 5 Nov 2026
- LowCVE-2026-118658Arbitrary Scheme Injection in WWWRedirect/NonWWWRedirect Middlewares via X-Forwarded-Proto in github.com/labstack/echo · 5 Nov 2026
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2022-40083
- Linkgithub.com/labstack/echo/issues/2259
- Linkgithub.com/labstack/echo/pull/2260
- Linkgithub.com/labstack/echo/pull/2260/commits/3154abd1401554fe4d1c09ec550506d8625fc042
- Linkgithub.com/labstack/echo/commit/0ac4d74402391912ff6da733bb09fd4c3980b4e1
- Packagegithub.com/labstack/echo
- Linkgithub.com/labstack/echo/releases/tag/v4.9.0
- Linkpkg.go.dev/vuln/GO-2022-1031
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.