Origin Validation Error Affecting github.com/jub0bs/cors/internal/origins/radix package, versions <0.1.3


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-GOLANG-GITHUBCOMJUB0BSCORSINTERNALORIGINSRADIX-6808801
  • published 5 May 2024
  • disclosed 3 May 2024
  • credit jub0bs

Introduced: 3 May 2024

CVE NOT AVAILABLE CWE-346 Open this link in a new tab

How to fix?

Upgrade github.com/jub0bs/cors/internal/origins/radix to version 0.1.3 or higher.

Overview

Affected versions of this package are vulnerable to Origin Validation Error due to the implementation of CORS middleware that incorrectly processes origin patterns with shared proper suffixes. An attacker can exploit this flaw to conduct cross-origin attacks from untrusted origins by specifying two or more origin patterns whose hosts share a proper suffix, leading to the incorrect allowance of untrusted origins.

References

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
9.3 critical
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Changed
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    None