{"id":"CVE-2025-50864","published":"2025-08-20T00:00:00Z","modified":"2026-07-05T01:27:35Z","title":"An Origin Validation Error in the elysia-cors library thru 1.3.0 allows attackers to bypass Cross-Origin Resource…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00562,"percentile":0.47595,"provenance":"source"},"cwes":[{"id":"CWE-178","name":"Improper Handling of Case Sensitivity"}],"references":[{"url":"https://github.com/elysiajs/elysia-cors/blob/main/src/index.ts","tags":[]},{"url":"https://github.com/elysiajs/elysia-cors/tree/main","tags":[]},{"url":"https://medium.com/@raghavagrawal_23036/cors-bypass-in-popular-opensource-library-ad27fb41e16a","tags":[]},{"url":"https://github.com/elysiajs/elysia-cors/commit/9b9eb92e32a7a4b43b6d5108668941701c33e221","tags":[]}],"priority":{"score":14.1,"factors":[{"name":"EPSS percentile","points":9.52},{"name":"CVSS severity","points":4.55}]},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-08-21T13:28:23.333748Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@elysiajs/cors","vulnerableRanges":["<1.3.1"],"patched":["1.3.1"],"from":["GHSA-f9qj-4c5x-cpcw"],"provenance":"source"}],"summary":{"text":"The elysia-cors library through version 1.3.0 contains an origin validation flaw in which supplied origins are checked as substrings of the allowed domains in a site's CORS policy instead of being exactly matched. An attacker can use a crafted origin such as one that merely contains an allowed domain (for example \"notexample.com\" or \"example.common.net\" against \"example.com\") to bypass CORS restrictions, which requires only network access and user interaction, with no authentication needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:45:01Z"},"euvd":{"id":"EUVD-2025-25313","exploited":false,"provenance":"source"}}