Advisory

GHSA-927h-x4qj-r242

Also known as: CVE-2018-20744, GO-2023-1792

Summary

github.com/gofiber/fiber/v2 vulnerable to Origin Validation Error

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-05-14 01:33 UTC
Modified
2024-05-20 21:53 UTC

Affected packages and fixes

github.com/gofiber/fiber/v2

Go · All systems

Affected

  • introduced 2.0.0, fixed 2.43.0 (semver)

Fixed versions

2.43.0

Fix

github.com/rs/cors

Go · All systems

Affected

  • introduced 0, fixed 1.5.0 (semver)

Fixed versions

1.5.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences