{"id":"GO-2024-2604","revision":"8f26dbf34da846bca1c40fe88eb8f488","records":[{"revision":"8f26dbf34da846bca1c40fe88eb8f488","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2024-2604","aliases":["CVE-2024-27302","GHSA-fgxv-gw55-r5fq"],"title":"CORS Filter bypass in github.com/zeromicro/go-zero","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.","state":0,"publishedAt":"2024-03-11T18:58:48+00:00","modifiedAt":"2024-05-20T16:03:47+00:00","affected":[{"ecosystem":"Go","name":"github.com/zeromicro/go-zero","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.4.4"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/zeromicro/go-zero/security/advisories/GHSA-fgxv-gw55-r5fq","https://github.com/zeromicro/go-zero/commit/d9d79e930dff6218a873f4f02115df61c38b15db"],"sourceUrl":"https://osv.dev/vulnerability/GO-2024-2604","license":"OSV · upstream source license applies","key":"osv:GO-2024-2604","identifiers":["GO-2024-2604","CVE-2024-27302","GHSA-fgxv-gw55-r5fq"]},"retained":false,"historicalAffected":[]}],"coverage":[]}