{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-50864","id":"CVE-2025-50864","title":"elysia-cors Origin Validation Error","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's CORS policy, rather than performing an exact match. For example, a malicious origin like \"notexample.com\", \"example.common.net\" is whitelisted","descriptionLong":"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.","published":"2025-08-20T00:00:00.000Z","updated":"2026-10-28T02:30:56.145754175Z","reserved":"2025-06-16T00:00:00.000Z","status":"Deferred","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","rating":"medium","source":"CISA-ADP"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","rating":"medium","source":"GitHub"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"@elysiajs/cors","purl":"pkg:npm/%40elysiajs/cors","ranges":["<1.3.1"],"fixed":["1.3.1"],"advisory":"GHSA-f9qj-4c5x-cpcw"}],"cwes":["CWE-178","CWE-346"],"aliases":["GHSA-f9qj-4c5x-cpcw"],"references":[{"url":"https://github.com/elysiajs/elysia-cors/blob/main/src/index.ts","tags":["web"]},{"url":"https://github.com/elysiajs/elysia-cors/tree/main","tags":["web"]},{"url":"https://medium.com/@raghavagrawal_23036/cors-bypass-in-popular-opensource-library-ad27fb41e16a","tags":["web"]},{"url":"https://github.com/elysiajs/elysia-cors/commit/9b9eb92e32a7a4b43b6d5108668941701c33e221","tags":["fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/50xxx/CVE-2025-50864.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-50864","tags":["advisory"]},{"url":"https://github.com/elysiajs/elysia-cors","tags":["package"]},{"url":"http://elysiajs.com","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00523,"epssPercentile":0.4515,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-50864","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-50864","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-50864","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-f9qj-4c5x-cpcw","ok":true,"note":"GHSA-f9qj-4c5x-cpcw"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-50864","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}