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. Learn more

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 IDSNYK-GOLANG-GITHUBCOMJUB0BSCORSINTERNALORIGINSRADIX-6808801
  • published5 May 2024
  • disclosed3 May 2024
  • creditjub0bs

Introduced: 3 May 2024

CVE NOT AVAILABLE CWE-346  (opens 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