Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/gofiber/fiber/v2
  4. ›
  5. CVE-2026-119285

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

October 30, 2026

In v2.52.1 and v2.52.2 the CORS middleware matched a wildcard origin such as https://*.example.com by suffix only, without a dot boundary and without comparing the scheme. Any origin whose host ends with the base domain, for example https://evil-example.com or http://notexample.com, was reflected in Access-Control-Allow-Origin, together with Access-Control-Allow-Credentials: true when AllowCredentials is enabled.

v2.52.3 replaced the matcher (#2915) and is not affected. The report was filed against v2.52.15, where the dot boundary holds; see “Other versions” below.

References

  • github.com/advisories/GHSA-g5jq-qmqr-qrwf
  • github.com/gofiber/fiber/commit/1aac6f618b6bd3e159d2449acb4232a2170b976b
  • github.com/gofiber/fiber/pull/2915
  • github.com/gofiber/fiber/releases/tag/v2.52.3
  • github.com/gofiber/fiber/security/advisories/GHSA-g5jq-qmqr-qrwf
  • nvd.nist.gov/vuln/detail/CVE-2026-119285

Code Behaviors & Features

Detect and mitigate CVE-2026-119285 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 2.52.1 before 2.52.3

Fixed versions

  • 2.52.3

Solution

Upgrade to version 2.52.3 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-346: Origin Validation Error
  • CWE-942: Permissive Cross-domain Policy with Untrusted Domains

Source file

go/github.com/gofiber/fiber/v2/CVE-2026-119285.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:55 +0000.