Origin Validation Error Affecting github.com/gofiber/fiber/v2/middleware/cors package, versions <2.43.0


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.13% (50th percentile)

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 IDSNYK-GOLANG-GITHUBCOMGOFIBERFIBERV2MIDDLEWARECORS-5673229
  • published9 Jun 2023
  • disclosed8 Jun 2023
  • creditjub0bs

Introduced: 8 Jun 2023

CVE-2018-20744  (opens in a new tab)
CWE-346  (opens in a new tab)

How to fix?

Upgrade github.com/gofiber/fiber/v2/middleware/cors to version 2.43.0 or higher.

Overview

Affected versions of this package are vulnerable to Origin Validation Error such that if developers configure their CORS to allow credentials and specify the wildcard as an allowed origin, the resulting middleware unconditionally reflects the value of the request's Origin header in the Access-Control-Allow-Origin response header.

CVSS Scores

version 3.1