CVE-2025-50864: An Origin Validation Error in the elysia-cors library thru 1.3.0 allows attackers to bypass Cross-Origin Re...
An Origin Validation Error in the elysia-cors library thru 1.3.0 allows attackers to bypass Cross-Origin Resource Sharing (CORS) restrictions. The library incorrectly validates the supplied origin by checking if it is a substring of any domain in the site's CORS policy, rather than performing an exact match. For example, a malicious origin like "notexample.com", "example.common.net" is whitelisted when the site's CORS policy specifies "example.com." This vulnerability enables unauthorized access to user data on sites using the elysia-cors library for CORS validation.
Security readout for executives and security teams
Plain-English summary
This flaw can make a website trust the wrong origin for browser cross-origin requests. If an application uses elysia-cors through 1.3.0 and expects only exact trusted domains, a lookalike origin could be accepted because the library checks for substrings.
Executive priority
Treat this as a moderate application security issue. Prioritize internet-facing services that use elysia-cors for sensitive browser data flows, but do not treat it as confirmed exploited based on the supplied evidence.
Technical view
The issue is an origin validation error in elysia-cors through 1.3.0. The supplied origin is accepted when it appears as a substring of a configured allowed domain, instead of requiring an exact origin match. The supplied CVSS is 6.5 medium with network access, low complexity, and user interaction required.
Likely exposure
Exposure is likely limited to applications using elysia-cors through 1.3.0 for CORS allowlist enforcement, especially where trusted domains are configured and sensitive browser-accessible routes rely on that control.
Exploitation context
The bundle does not show KEV listing or confirmed active exploitation. The CVSS vector indicates remote exploitation with low complexity but requires user interaction. Public references include a write-up and a GitHub commit, so awareness is public.
Researcher notes
The source bundle names elysia-cors through 1.3.0, but affected CPE/product fields are n/a. There is also tension between the description's user-data impact and the supplied CVSS vector showing confidentiality none and integrity high.
Mitigation direction
Identify applications using elysia-cors through version 1.3.0.
Review vendor guidance and the referenced GitHub commit for the exact fix.
Upgrade to a fixed package version when confirmed by the project.
Require exact origin matching for configured CORS allowlists.
Avoid broad or substring-based domain allow rules for sensitive routes.
Validation and detection
Inspect dependency manifests and lockfiles for elysia-cors versions.
Review CORS configuration for exact trusted origins only.
Test that lookalike origins are rejected by protected endpoints.
Confirm deployed code includes the vendor's origin-matching correction.
Check logs for unusual cross-origin requests to sensitive routes.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-178: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.