Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/jub0bs/cors
  4. ›
  5. GHSA-vhxv-fg4m-p2w8

GHSA-vhxv-fg4m-p2w8: 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-vhxv-fg4m-p2w8
  • github.com/jub0bs/cors
  • github.com/jub0bs/cors/commit/5bc0648a32db2d600179a50866f648f4d7090363
  • github.com/jub0bs/cors/security/advisories/GHSA-vhxv-fg4m-p2w8

Code Behaviors & Features

Detect and mitigate GHSA-vhxv-fg4m-p2w8 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 0.1.3

Fixed versions

  • 0.1.3

Solution

Upgrade to version 0.1.3 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/cors/GHSA-vhxv-fg4m-p2w8.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:13 +0000.