Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify app using wildcard CORS with credentials
-
DeliveryRegister lookalike domain ending in base domain
-
ExploitLure authenticated victim to attacker page
-
ExecutionBrowser sends credentialed cross-origin request
-
ImpactRead 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Fiber is a web framework written in go. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable,
Unbounded memory allocation in Fiber v3 (prior to 3.1.0) allows unauthenticated remote attackers to trigger denial of se
Fiber web framework versions 2 and 3 are vulnerable to denial of service attacks when processing requests to routes cont
Fiber web framework versions 3.0.0 and earlier on Windows contain a path traversal vulnerability that allows remote atta
Fiber is an Express-inspired web framework written in Go A vulnerability present in versions prior to 2.52.5 is a sessio
Go Fiber web framework before 2.52.11 has a weak PRNG vulnerability (on Go < 1.24) that makes session tokens predictable
Fiber is an express inspired web framework written in Go. Rated high severity (CVSS 8.8), this vulnerability is remotely
Fiber is an express inspired web framework written in Go. Rated high severity (CVSS 8.8), this vulnerability is remotely
In Fiber before version 1.12.6, the filename that is given in c.Attachment() (https://docs.gofiber.io/ctx#attachment) is
Fiber is an Express inspired web framework built in the go language. Rated medium severity (CVSS 5.3), this vulnerabilit
Fiber is an Express inspired web framework written in Go. Rated high severity (CVSS 8.7), this vulnerability is remotely
Fiber is an Express-inspired web framework written in Go. Rated high severity (CVSS 7.7), this vulnerability is remotely
EUVD-2026-113402
GHSA-g5jq-qmqr-qrwf
NVD
CVE.org
EPSS
VulDB
Exploit-DB