GitHub Advisoryadvisory · Go

GHSA-927h-x4qj-r242 github.com/gofiber/fiber/v2 vulnerable to Origin Validation Error

MEDIUM Published 2022-05-14 Modified 2024-05-20 Official page ↗
Aliases
CVE-2018-20744
Ecosystem
Go
Packages
github.com/gofiber/fiber/v2, github.com/rs/cors
Severity
Moderate
CVSS vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Weaknesses
CWE-346
Reviewed
2023-06-14

Affected packages

• Go github.com/gofiber/fiber/v2: >= 2.0.0, < 2.43.0 → fixed in 2.43.0 • Go github.com/rs/cors: < 1.5.0 → fixed in 1.5.0

Description

The Olivier Poitrey Go CORS handler through 1.3.0 actively converts a wildcard CORS policy into reflecting an arbitrary Origin header value, which is incompatible with the CORS security design, and could lead to CORS misconfiguration security problems.

Related

Alias · CVE (1)

  • CVE-2018-20744 The Olivier Poitrey Go CORS handler through 1.3.0 actively converts a wildcard CORS policy into reflecting an arbitrary Origin header… vulnerability

Weakness · CWE (1)

  • CWE-346 Origin Validation Error weakness

References