Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/rs/cors
  4. ›
  5. CVE-2018-20744

CVE-2018-20744: github.com/gofiber/fiber/v2 vulnerable to Origin Validation Error

May 14, 2022 (updated May 20, 2024)

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.

References

  • github.com/advisories/GHSA-927h-x4qj-r242
  • github.com/gofiber/fiber
  • github.com/gofiber/fiber/issues/2338
  • github.com/gofiber/fiber/pull/2339
  • github.com/rs/cors/issues/55
  • github.com/rs/cors/pull/57
  • nvd.nist.gov/vuln/detail/CVE-2018-20744
  • web.archive.org/web/20200227091122/http://www.securityfocus.com/bid/106834
  • www.usenix.org/system/files/conference/usenixsecurity18/sec18-chen.pdf

Code Behaviors & Features

Detect and mitigate CVE-2018-20744 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.5.0

Fixed versions

  • 1.5.0

Solution

Upgrade to version 1.5.0 or above.

Impact 5.9 MEDIUM

CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-346: Origin Validation Error

Source file

go/github.com/rs/cors/CVE-2018-20744.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:30 +0000.