{"id":"EUVD-2025-25313","enisaUuid":"5b331ec1-dcb1-3680-a98b-3a3d22f73d95","description":"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\u0027s CORS policy, rather than performing an exact match. For example, a malicious origin like \"notexample.com\", \"example.common.net\" is whitelisted when the site\u0027s CORS policy specifies \"example.com.\" This vulnerability enables unauthorized access to user data on sites using the elysia-cors library for CORS validation.","datePublished":"Aug 20, 2025, 12:00:00 AM","dateUpdated":"Jul 5, 2026, 1:27:35 AM","baseScore":6.5,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","references":"https://github.com/elysiajs/elysia-cors/blob/main/src/index.ts\nhttps://github.com/elysiajs/elysia-cors/tree/main\nhttps://medium.com/@raghavagrawal_23036/cors-bypass-in-popular-opensource-library-ad27fb41e16a\nhttps://github.com/elysiajs/elysia-cors/commit/9b9eb92e32a7a4b43b6d5108668941701c33e221\n","aliases":"CVE-2025-50864\nGHSA-f9qj-4c5x-cpcw\n","assigner":"mitre","epss":0.56,"enisaIdProduct":[{"id":"774a1b76-ca8d-3865-b09e-398456654d31","product":{"name":"n/a","vendor":{"name":"n/a"}},"product_version":"n/a"}],"enisaIdVendor":[{"id":"1ff08d0e-e3fd-3e61-8383-c187df6417e4","vendor":{"name":"n/a"}}],"enisaIdVulnerability":[{"id":"3879da55-ece1-308a-9fe2-005d181d13fa","vulnerability":{"id":"GHSA-f9qj-4c5x-cpcw","description":"elysia-cors Origin Validation Error","datePublished":"Aug 20, 2025, 3:31:42 PM","dateUpdated":"Jan 29, 2026, 2:36:18 AM","baseScore":0.0,"references":"https://nvd.nist.gov/vuln/detail/CVE-2025-50864\nhttps://github.com/elysiajs/elysia-cors/commit/9b9eb92e32a7a4b43b6d5108668941701c33e221\nhttps://github.com/elysiajs/elysia-cors\nhttps://github.com/elysiajs/elysia-cors/blob/main/src/index.ts\nhttps://github.com/elysiajs/elysia-cors/tree/main\nhttps://medium.com/@raghavagrawal_23036/cors-bypass-in-popular-opensource-library-ad27fb41e16a\nhttp://elysiajs.com\n","enisa_id":"EUVD-2025-25313\n","aliases":"GHSA-f9qj-4c5x-cpcw\nCVE-2025-50864\n","epss":0.0,"dataProcessed":"Nov 22, 2026, 2:44:47 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}},{"id":"4f697a34-d358-3aa3-bb2e-b25f97a365ca","vulnerability":{"id":"CVE-2025-50864","description":"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\u0027s CORS policy, rather than performing an exact match. For example, a malicious origin like \"notexample.com\", \"example.common.net\" is whitelisted when the site\u0027s CORS policy specifies \"example.com.\" This vulnerability enables unauthorized access to user data on sites using the elysia-cors library for CORS validation.","datePublished":"Aug 20, 2025, 12:00:00 AM","dateUpdated":"Jul 5, 2026, 1:27:35 AM","status":"PUBLISHED","baseScore":6.5,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","references":"https://github.com/elysiajs/elysia-cors/blob/main/src/index.ts\nhttps://github.com/elysiajs/elysia-cors/tree/main\nhttps://medium.com/@raghavagrawal_23036/cors-bypass-in-popular-opensource-library-ad27fb41e16a\nhttps://github.com/elysiajs/elysia-cors/commit/9b9eb92e32a7a4b43b6d5108668941701c33e221\n","enisa_id":"EUVD-2025-25313\n","assigner":"mitre","epss":0.56,"dataProcessed":"Nov 23, 2026, 7:25:07 AM","vulnerabilityProduct":[{"id":"690347f3-d1f5-31c9-9efa-bc321a900eff","product":{"name":"n/a","vendor":{"name":"n/a"}},"product_version":"n/a"}],"vulnerabilityVendor":[{"id":"7fa75ff2-60ab-3862-89d8-16b13e35586a","vendor":{"name":"n/a"}}]}}],"enisaIdAdvisory":[]}