Open Redirect Affecting github.com/labstack/echo/v4/middleware package, versions <4.2.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Open Redirect vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMLABSTACKECHOV4MIDDLEWARE-1083954
  • published26 Feb 2021
  • disclosed12 Feb 2021
  • creditMartti T

Introduced: 12 Feb 2021

CVE NOT AVAILABLE CWE-601  (opens in a new tab)

How to fix?

Upgrade github.com/labstack/echo/v4/middleware to version 4.2.0 or higher.

Overview

github.com/labstack/echo/v4/middleware is a middleware package for echo.

Affected versions of this package are vulnerable to Open Redirect. When using middleware.AddTrailingSlashWithConfig (resp middleware.RemoveTrailingSlashWithConfig) with a RedirectCode configured, it is possible to create open redirects with addresses like this one: http://my_echo_app.com/%5Cevil_website_com (resp http://my_echo_app.com/%5Cevil_website_com/).

CVSS Scores

version 3.1