CVE-2018-20744: GO-2023-1792 - Insecure wildcard CORS policy in github.com/rs/cors

CVE-2018-20744 · Severity: low · CVSS 3 · Published 2023-06-08

Insecure wildcard CORS policy in github.com/rs/cors

Technologies: github.com/gofiber/fiber/v2 (Go), github.com/rs/cors (Go). Vendors: Go.

Quick answers

Is CVE-2018-20744 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2018-20744 being exploited in the wild.
How severe is CVE-2018-20744?
Low severity, with a CVSS score of 3, published 8 June 2023.
Which products and versions are affected?
github.com/gofiber/fiber/v2 (Go) SEMVER:introduced=2.0.0,fixed=2.43.0; github.com/rs/cors (Go) SEMVER:introduced=0,fixed=1.5.0.
Is there a fix for CVE-2018-20744?
Yes. github.com/gofiber/fiber/v2 (Go): upgrade to 2.43.0 or later; github.com/rs/cors (Go): upgrade to 1.5.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2018-20744?
Check whether you run github.com/gofiber/fiber/v2 (Go) or github.com/rs/cors (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • github.com/gofiber/fiber/v2 (Go): upgrade to 2.43.0 or later
    go get github.com/gofiber/fiber/v2@v2.43.0
  • github.com/rs/cors (Go): upgrade to 1.5.0 or later
    go get github.com/rs/cors@v1.5.0

Affected products

  • github.com/gofiber/fiber/v2 (Go) SEMVER:introduced=2.0.0,fixed=2.43.0
  • github.com/rs/cors (Go) SEMVER:introduced=0,fixed=1.5.0

Identifiers

  • CVE-2018-20744
  • GHSA-927h-x4qj-r242
  • GO-2023-1792

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.