{"id":"CVE-2026-119285","state":"PUBLISHED","title":"Fiber: CORS wildcard origins matched without a dot boundary, allowing credentialed cross-origin reads","description":"Fiber is an Express inspired web framework written in Go. From 2.52.1 until 2.52.3, the CORS middleware's validateDomain wildcard matcher in middleware/cors/utils.go strips the scheme and checks only a host suffix without requiring a dot boundary. An application configured with a wildcard-subdomain AllowOrigins value and AllowCredentials enabled can reflect an unrelated attacker-controlled origin whose host merely ends with the configured base domain. A user who visits that origin can expose authenticated cross-origin responses to the attacker's page; empty-label origins and later comma-space parsing hardening are outside this advisory. This issue is fixed in version 2.52.3.","publishedAt":"2026-10-29T21:36:02.199Z","updatedAt":"2026-10-29T21:36:02.199Z","severity":{"score":5.9,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["gofiber fiber"],"affected":[{"vendor":"gofiber","product":"fiber","versions":[{"version":">= 2.52.1, < 2.52.3","status":"affected"}]}],"references":["https://github.com/gofiber/fiber/security/advisories/GHSA-g5jq-qmqr-qrwf","https://github.com/gofiber/fiber/pull/2915","https://github.com/gofiber/fiber/commit/1aac6f618b6bd3e159d2449acb4232a2170b976b","https://github.com/gofiber/fiber/releases/tag/v2.52.3"],"weaknesses":["CWE-346","CWE-942"],"ingestedAt":"2026-10-29T23:16:04.497Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/119xxx/CVE-2026-119285.json","commit":"dc7676b3f67d6707e4927968546e7e0125ff7ec7","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-119285","state":"PUBLISHED","datePublished":"2026-10-29T21:36:02.199Z","dateUpdated":"2026-10-29T21:36:02.199Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-10-29T18:50:28.065Z"},"containers":{"cna":{"title":"Fiber: CORS wildcard origins matched without a dot boundary, allowing credentialed cross-origin reads","descriptions":[{"lang":"en","value":"Fiber is an Express inspired web framework written in Go. From 2.52.1 until 2.52.3, the CORS middleware's validateDomain wildcard matcher in middleware/cors/utils.go strips the scheme and checks only a host suffix without requiring a dot boundary. An application configured with a wildcard-subdomain AllowOrigins value and AllowCredentials enabled can reflect an unrelated attacker-controlled origin whose host merely ends with the configured base domain. A user who visits that origin can expose authenticated cross-origin responses to the attacker's page; empty-label origins and later comma-space parsing hardening are outside this advisory. This issue is fixed in version 2.52.3."}],"affected":[{"vendor":"gofiber","product":"fiber","versions":[{"version":">= 2.52.1, < 2.52.3","status":"affected"}]}],"references":[{"url":"https://github.com/gofiber/fiber/security/advisories/GHSA-g5jq-qmqr-qrwf","name":"https://github.com/gofiber/fiber/security/advisories/GHSA-g5jq-qmqr-qrwf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gofiber/fiber/pull/2915","name":"https://github.com/gofiber/fiber/pull/2915","tags":["x_refsource_MISC"]},{"url":"https://github.com/gofiber/fiber/commit/1aac6f618b6bd3e159d2449acb4232a2170b976b","name":"https://github.com/gofiber/fiber/commit/1aac6f618b6bd3e159d2449acb4232a2170b976b","tags":["x_refsource_MISC"]},{"url":"https://github.com/gofiber/fiber/releases/tag/v2.52.3","name":"https://github.com/gofiber/fiber/releases/tag/v2.52.3","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.9,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-346","lang":"en","description":"CWE-346: Origin Validation Error","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-942","lang":"en","description":"CWE-942: Permissive Cross-domain Policy with Untrusted Domains","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-10-29T21:36:02.199Z"},"source":{"advisory":"GHSA-g5jq-qmqr-qrwf","discovery":"UNKNOWN"}}}}}