CVE-2024-27302
CORS Filter bypass in github.com/zeromicro/go-zero
9.1
CRITICAL
CVSS 3.1
EPSS 0.32%
Description
The CORS Filter feature in go-zero allows users to specify an array of domains allowed in the CORS policy. However, the isOriginAllowed function uses strings.HasSuffix to check the origin, which can lead to a bypass via a domain like "evil-victim.com". This vulnerability is capable of breaking CORS policy and thus allowing any page to make requests and retrieve data on behalf of other users.
How to fix CVE-2024-27302
To remediate CVE-2024-27302, upgrade the affected package to a fixed version below.
- —upgrade to 1.4.4 or later
- —upgrade to 1.4.4 or later
Is CVE-2024-27302 being exploited?
Low — EPSS is 0.3%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, < 1.4.4
- from 0, < 1.4.4
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |