Permissive Cross-domain Policy with Untrusted Domains Affecting github.com/gofiber/fiber/v2/middleware/cors package, versions >=2.52.1 <2.52.3


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.13% (3rd 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-22479632
  • published12 Nov 2026
  • disclosed30 Oct 2026
  • creditUnknown

Introduced: 30 Oct 2026

NewCVE-2026-119285  (opens in a new tab)
CWE-346  (opens in a new tab)
CWE-942  (opens in a new tab)

How to fix?

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

Overview

Affected versions of this package are vulnerable to Permissive Cross-domain Policy with Untrusted Domains via the wildcard-origin matcher in the CORS middleware. An attacker can read a victim’s authenticated responses by having the victim visit a page on a host such as evil-example.com or notexample.com, when the application allows https://*.example.com and enables AllowCredentials; the matcher accepts the host suffix without requiring a dot boundary or matching the scheme, so the middleware reflects the attacker’s origin with credentialed CORS headers.

CVSS Base Scores

version 4.0
version 3.1