Vulnerability DatabaseGHSA-vhxv-fg4m-p2w8

GHSA-vhxv-fg4m-p2w8
vulnerability analysis and mitigation

Overview

A critical security vulnerability (GHSA-vhxv-fg4m-p2w8) was discovered in the jub0bs/cors Go package affecting versions prior to 0.1.3. The vulnerability was published on May 2, 2024, and received a CVSS score of 9.3 (Critical). The issue affects CORS middleware configurations where two or more origin patterns with hosts sharing a proper suffix are specified (GitHub Advisory).

Technical details

The vulnerability stems from a bug in the construction of radix trees within the CORS middleware. When configured with multiple origin patterns that share a proper suffix, the middleware incorrectly allows some untrusted origins. For example, if the middleware is configured with origin patterns 'https://foo.com' and 'https://bar.com', it would incorrectly allow requests from untrusted origins like 'https://barfoo.com'. The vulnerability has been assigned CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N, indicating network attack vector, low complexity, no privileges required, and high impact on confidentiality and integrity (GitHub Advisory).

Impact

The vulnerability enables potential cross-origin attacks from untrusted origins. When exploited, it allows unauthorized origins to bypass CORS restrictions, potentially leading to unauthorized access to sensitive data and functionality. The high CVSS score of 9.3 reflects the significant impact on both confidentiality and integrity of the affected systems (GitHub Advisory).

Exploitability

The vulnerability requires network access and user interaction but no special privileges for exploitation. The attack complexity is rated as low, making it relatively straightforward to exploit in environments where the conditions are met (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.1.3 of the jub0bs/cors package. No workarounds are available, making it critical for affected users to upgrade to the patched version (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management