Skip to main content

GoFiber EUVDEUVD-2026-113402

| CVE-2026-119285 MEDIUM
Origin Validation Error (CWE-346)
2026-10-29 GitHub_M GHSA-g5jq-qmqr-qrwf
5.9
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify app using wildcard CORS with credentials
  2. Delivery
    Register lookalike domain ending in base domain
  3. Exploit
    Lure authenticated victim to attacker page
  4. Execution
    Browser sends credentialed cross-origin request
  5. Impact
    Read reflected authenticated cross-origin response

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Origin validation
Exploitation Conditions

Exploitation requires the target Fiber application (v2.52.1 or v2.52.2) to be configured with a wildcard-subdomain AllowOrigins entry such as "https://*.example.com" AND AllowCredentials set to true - a non-default, operator-chosen configuration. The attacker must control a domain whose host string merely ends with the configured base domain (e.g. evil-example.com or notexample.com for *.example.com); because the matcher strips the scheme, both http:// and https:// attacker origins are accepted. An authenticated user must then visit the attacker-controlled origin so their browser issues a credentialed cross-origin request. Limiting factors: the vulnerable wildcard-plus-credentials configuration is not the default, the victim must be authenticated and interact (visit the malicious page), and only applications on v2.52.1-2.52.2 are affected - v2.52.0 and v2.52.3+ are not.

Impact

This is a moderate, configuration-dependent CORS flaw (CWE-346/CWE-942) rather than a high-urgency emergency. The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N, base 5.9) correctly reflects a network-reachable but high-complexity issue: exploitation only works against applications that opt into a wildcard-subdomain AllowOrigins value with AllowCredentials enabled, and requires an authenticated victim to visit an attacker page (UI:R). PR:N is appropriate because the attacker needs no account on the target, but the real gating factor is the non-default server configuration, which is captured in AC:H. No EPSS score was provided in the input, so exploitation probability cannot be quantified. The vulnerability is NOT in CISA KEV, so there is no confirmed active exploitation; a public PoC reference exists in the GHSA advisory but it is not verified as weaponized exploit code. The vendor priority label is 'this_month', not act_now/emergency, consistent with a patchable, condition-limited confidentiality issue. Net: a genuine credential-exposure bug worth remediating on a normal patch cycle for affected deployments, but not a drop-everything incident given the narrow configuration prerequisite and absence of KEV/EPSS escalation signals.

Exploit ScenarioDerived

A Fiber app (v2.52.1-2.52.2) is configured with AllowOrigins: "https://*.example.com" and AllowCredentials: true. An attacker registers a lookalike domain such as evil-example.com (whose host ends with the base domain) and lures an authenticated user there; the user's browser sends a credentialed cross-origin request and the middleware reflects the attacker origin in Access-Control-Allow-Origin with Access-Control-Allow-Credentials: true, letting the attacker's page read the authenticated response. A proof-of-concept demonstrating this is published in the GHSA advisory, though it is not verified as a standalone working exploit tool.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 29, 2026

A CORS wildcard-matcher flaw in GoFiber v2.52.1 and v2.52.2 lets an attacker-controlled origin be reflected in Access-Control-Allow-Origin together with Access-Control-Allow-Credentials: true when an application uses a wildcard-subdomain AllowOrigins entry and enables AllowCredentials. Because validateDomain in middleware/cors/utils.go compared only a host suffix after stripping the scheme, an origin such as https://evil-example.com or http://notexample.com matched a configuration of https://*.example.com, so a logged-in user who visits that page can have authenticated cross-origin responses read by the attacker's JavaScript. The flaw is moderate and configuration-dependent - no default deployment is affected - and it is fixed in v2.52.3.

RemediationAI

Upgrade go/github.com/gofiber/fiber/v2 to 2.52.3 or later, which replaces the suffix-only wildcard matcher with a scheme-aware, dot-boundary-checking implementation (commit 1aac6f61, PR #2915); the vendor advisory GHSA-g5jq-qmqr-qrwf and the v2.52.3 release notes at https://github.com/gofiber/fiber/releases/tag/v2.52.3 confirm the fix. Applications that cannot upgrade immediately should remove wildcard-subdomain patterns from AllowOrigins and list fully qualified origins explicitly, or set AllowCredentials to false for any configuration that relies on a wildcard-subdomain entry - either change eliminates the mis-match at the cost of less flexible origin handling or loss of cookie-based cross-origin access. Note that v2.52.16 additionally hardens empty-label origin handling and comma-space wildcard parsing, so organizations staying on the v2 line should target the latest v2 release rather than stopping at 2.52.3.

Affected VersionsENISA

fiber 2.52.1, < 2.52.3

Affected Packages

go github.com/gofiber/fiber/v2 fix: 2.52.3
euvd fiber fix: 2.52.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

GoFiber's CORS middleware (middleware/cors) implements Cross-Origin Resource Sharing header handling for Fiber applications. The validateDomain helper was introduced in v2.52.1 as part of the fix for an earlier advisory, and it normalized both the configured pattern and the request Origin by stripping scheme and port, then checked only strings.HasSuffix(normalizedDomain, trimmedPattern) with trimmedPattern set to the base domain without any leading dot. Consequently the character preceding the suffix was never examined, so any host ending in the base string matched, including unrelated registrable domains such as evil-example.com and notexample.com for a pattern of *.example.com; since the scheme was also discarded, both http and https attacker origins were accepted. This is an origin-validation error (CWE-346) that amounts to an overly permissive CORS policy (CWE-942): when AllowCredentials is true the middleware emitted Access-Control-Allow-Credentials: true alongside the reflected origin, and browsers will then attach cookies to the cross-origin request and expose the response body to the attacker's page. Fix commit 1aac6f61 (PR #2915) replaced the matcher with a scheme-aware prefix/suffix split that retains the leading dot in the suffix so a true label boundary is required. The advisory also notes two separate hardening items outside its scope: empty-label origins (https://.example.com, https://a..example.com) accepted by all v2 releases before v2.52.16, and mis-parsing of a wildcard entry following a comma and space in v2.52.3 through v2.52.15, both fixed in v2.52.16 (#4792).

Know when Fiber gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 5.9 MEDIUM
AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
vuln.today AI 5.9 MEDIUM

Attacker needs no target privileges (PR:N) but depends on a non-default wildcard+credentials config plus a matching domain and victim visit (AC:H, UI:R); credentialed reads give C:H, minor state-change risk I:L, no availability impact.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Red Hat 5.9 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None

Lifecycle Timeline

1
Patch available
Oct 29, 2026 - 22:03 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Medium
popular Go web framework, but only a subset of web stacks
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Fiber

View all
CVE-2024-25124 CRITICAL POC
9.8 Feb 21

Fiber is a web framework written in go. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable,

CVE-2026-25899 HIGH POC
7.5 Feb 24

Unbounded memory allocation in Fiber v3 (prior to 3.1.0) allows unauthenticated remote attackers to trigger denial of se

CVE-2026-25882 HIGH POC
7.5 Feb 24

Fiber web framework versions 2 and 3 are vulnerable to denial of service attacks when processing requests to routes cont

CVE-2026-25891 HIGH POC
7.5 Feb 24

Fiber web framework versions 3.0.0 and earlier on Windows contain a path traversal vulnerability that allows remote atta

CVE-2024-38513 CRITICAL
9.8 Jul 01

Fiber is an Express-inspired web framework written in Go A vulnerability present in versions prior to 2.52.5 is a sessio

CVE-2025-66630 CRITICAL
9.4 Feb 09

Go Fiber web framework before 2.52.11 has a weak PRNG vulnerability (on Go < 1.24) that makes session tokens predictable

CVE-2023-45141 HIGH
8.8 Oct 16

Fiber is an express inspired web framework written in Go. Rated high severity (CVSS 8.8), this vulnerability is remotely

CVE-2023-45128 HIGH
8.8 Oct 16

Fiber is an express inspired web framework written in Go. Rated high severity (CVSS 8.8), this vulnerability is remotely

CVE-2020-15111 MEDIUM
5.4 Jul 20

In Fiber before version 1.12.6, the filename that is given in c.Attachment() (https://docs.gofiber.io/ctx#attachment) is

CVE-2023-41338 MEDIUM
5.3 Sep 08

Fiber is an Express inspired web framework built in the go language. Rated medium severity (CVSS 5.3), this vulnerabilit

CVE-2025-54801 HIGH
8.7 Aug 06

Fiber is an Express inspired web framework written in Go. Rated high severity (CVSS 8.7), this vulnerability is remotely

CVE-2025-48075 HIGH POC
7.7 May 22

Fiber is an Express-inspired web framework written in Go. Rated high severity (CVSS 7.7), this vulnerability is remotely

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy