Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/jub0bs/fcors
  4. ›
  5. GHSA-v84h-653v-4pq9

GHSA-v84h-653v-4pq9: Some CORS middleware allow untrusted origins

May 3, 2024

Some CORS middleware (more specifically those created by specifying two or more origin patterns whose hosts share a proper suffix) incorrectly allow some untrusted origins, thereby opening the door to cross-origin attacks from the untrusted origins in question.

For example, specifying origin patterns https://foo.com and https://bar.com (in that order) would yield a middleware that would incorrectly allow untrusted origin https://barfoo.com.

References

  • github.com/advisories/GHSA-v84h-653v-4pq9
  • github.com/jub0bs/fcors
  • github.com/jub0bs/fcors/commit/08d85c149a418a583315cee066d4a35cc817219d
  • github.com/jub0bs/fcors/security/advisories/GHSA-v84h-653v-4pq9

Code Behaviors & Features

Detect and mitigate GHSA-v84h-653v-4pq9 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.9.0

Fixed versions

  • 0.9.0

Solution

Upgrade to version 0.9.0 or above.

Impact 9.3 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N

Learn more about CVSS

Source file

go/github.com/jub0bs/fcors/GHSA-v84h-653v-4pq9.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:22 +0000.