Public vulnerability disclosure

CVE-2026-119285

Fiber: CORS wildcard origins matched without a dot boundary, allowing credentialed cross-origin reads

publishedCWE-346CWE-942

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.

Technical severity5.9 mediumCVSS 3.1 · CNA: GitHub_M
Published2026-10-29Source updated 2026-11-04
Collected2026-11-043 attributed sources

Fixes and workarounds

Fix

github.com/gofiber/fiber/v2 (Go): OSV reports a fixed version 2.52.3. Check the advisory for supported release branches.

Source: OSV GHSA-g5jq-qmqr-qrwf

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority
fiber
gofiber
>= 2.52.1, < 2.52.3 (affected) CNA: GitHub_M
github.com/gofiber/fiber/v2

github.com/gofiber/fiber/v2
Go
≥ 2.52.1; < 2.52.3 (affected, semver); OSV events: introduced 2.52.1; fixed 2.52.3
Source events (semver)
[
  {
    "introduced": "2.52.1"
  },
  {
    "fixed": "2.52.3"
  }
]

Other versions: unaffected
OSV GHSA-g5jq-qmqr-qrwf

Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.

CVSS assessments

CVSS scores, vectors and reporting authorities
Version / scoreVectorAuthority
3.1 / 5.9
medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:NCNA: GitHub_M

Exploit evidence

References

For agents and automation

Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.

Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.

Endpoints and access details

https://api.y2.dev/api/v2/cyber/cves
https://api.y2.dev/api/v2/cyber/cves/{cveId}

A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.

For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.

Agent access JSON · OpenAPI · CVE API guide