{"id":"GHSA-f9qj-4c5x-cpcw","revision":null,"records":[{"revision":"398c5f4b5f7a433d98f438f3933a2b1e","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2025-50864","aliases":[],"title":"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 dom…","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 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.","state":0,"publishedAt":"2025-08-20T00:00:00+00:00","modifiedAt":"2026-07-05T01:27:35.684+00:00","affected":[{"ecosystem":"Vendor product","name":"n/a","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"n/a\",\n                    \"product\": \"n/a\",\n                    \"versions\": [\n                        {\n                            \"version\": \"n/a\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://github.com/elysiajs/elysia-cors/blob/main/src/index.ts","https://github.com/elysiajs/elysia-cors/tree/main","https://medium.com/@raghavagrawal_23036/cors-bypass-in-popular-opensource-library-ad27fb41e16a","https://github.com/elysiajs/elysia-cors/commit/9b9eb92e32a7a4b43b6d5108668941701c33e221"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2025-50864","license":"CVE Program Terms of Use","key":"cve-program:CVE-2025-50864","identifiers":["CVE-2025-50864"]},"retained":false,"historicalAffected":[]},{"revision":"f3d5b61ab14a4da6b36cb2253e766898","observedAt":"2026-11-25T08:14:10.736+00:00","statement":{"source":"euvd","id":"EUVD-2025-25313","aliases":["CVE-2025-50864","GHSA-f9qj-4c5x-cpcw"],"title":"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 dom…","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 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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":6.5,"severity":null}],"references":["https://github.com/elysiajs/elysia-cors/blob/main/src/index.ts","https://github.com/elysiajs/elysia-cors/tree/main","https://medium.com/@raghavagrawal_23036/cors-bypass-in-popular-opensource-library-ad27fb41e16a","https://github.com/elysiajs/elysia-cors/commit/9b9eb92e32a7a4b43b6d5108668941701c33e221"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-25313","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Aug 20, 2025, 12:00:00 AM","dateUpdated":"Jul 5, 2026, 1:27:35 AM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2025-25313","identifiers":["EUVD-2025-25313","CVE-2025-50864","GHSA-f9qj-4c5x-cpcw"]},"retained":false,"historicalAffected":[]},{"revision":"439c0a9ddc55463cb71afbcec45a193b","observedAt":"2026-10-25T02:25:01.737+00:00","statement":{"source":"nvd","id":"CVE-2025-50864","aliases":[],"title":"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 dom…","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 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.","state":0,"publishedAt":"2025-08-20T15:15:32.99+00:00","modifiedAt":"2026-07-05T02:16:51.173+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · 134c704f-9b21-4f2e-91b3-4a467353bcc0 · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":6.5,"severity":"MEDIUM"}],"references":["https://github.com/elysiajs/elysia-cors/blob/main/src/index.ts","https://github.com/elysiajs/elysia-cors/commit/9b9eb92e32a7a4b43b6d5108668941701c33e221","https://github.com/elysiajs/elysia-cors/tree/main","https://medium.com/@raghavagrawal_23036/cors-bypass-in-popular-opensource-library-ad27fb41e16a"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2025-50864","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-178"],"productCriteria":[],"sourceDates":{"published":"2025-08-20T15:15:32.990","lastModified":"2026-07-05T02:16:51.173"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2025-50864","identifiers":["CVE-2025-50864"]},"retained":false,"historicalAffected":[]},{"revision":"2ec2bd52f9c04c40ae784b93fe90c012","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-f9qj-4c5x-cpcw","aliases":["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 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.","state":0,"publishedAt":"2025-08-20T15:31:42+00:00","modifiedAt":"2026-02-03T03:05:27.058127+00:00","affected":[{"ecosystem":"npm","name":"@elysiajs/cors","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.3.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":null,"severity":null},{"system":"CVSS_V4","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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2025-50864","https://github.com/elysiajs/elysia-cors/commit/9b9eb92e32a7a4b43b6d5108668941701c33e221","https://github.com/elysiajs/elysia-cors","https://github.com/elysiajs/elysia-cors/blob/main/src/index.ts","https://github.com/elysiajs/elysia-cors/tree/main","https://medium.com/@raghavagrawal_23036/cors-bypass-in-popular-opensource-library-ad27fb41e16a","http://elysiajs.com/"],"sourceUrl":"https://github.com/advisories/GHSA-f9qj-4c5x-cpcw","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-f9qj-4c5x-cpcw","identifiers":["GHSA-f9qj-4c5x-cpcw","CVE-2025-50864"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-26T11:17:21.6832725+00:00","complete":true,"records":1805,"lastAttemptAt":"2026-11-26T11:17:21.6832725+00:00","lastSuccessAt":"2026-11-26T11:17:21.853444+00:00","error":null,"lastVerifiedAt":"2026-11-26T11:17:21.8534474+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-6c06d3f6833d772c3de33e851d9e5d9e99615d8105cd679264137594221ef608-e3e3e9c40f7d56581d30a888c1bfe8bdf0a1a29edc7d128a9134077be6437455","complete":true,"records":432594,"lastAttemptAt":"2026-11-26T11:17:10.6378315+00:00","lastSuccessAt":"2026-11-26T11:17:10.580892+00:00","error":null,"lastVerifiedAt":"2026-11-26T11:17:10.6378315+00:00","snapshotPublishedAt":"2026-11-26T10:22:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-152339e619264725a229febbb88c5e2d","complete":false,"records":13940,"lastAttemptAt":"2026-11-26T11:18:27.5918034+00:00","lastSuccessAt":"2026-11-26T11:18:27.6600459+00:00","error":null,"lastVerifiedAt":"2026-11-26T11:18:27.6600459+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-26T11:17:21.6832725+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-26T11:17:21.6832725+00:00","lastSuccessAt":"2026-11-26T11:17:38.1478668+00:00","error":null,"lastVerifiedAt":"2026-11-26T11:17:38.1478673+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-4e5a523077d340078ca9efb86f78e451","complete":true,"records":13952,"lastAttemptAt":"2026-11-26T11:17:57.7248034+00:00","lastSuccessAt":"2026-11-26T11:17:57.72+00:00","error":null,"lastVerifiedAt":"2026-11-26T11:17:57.72+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13988,"expectedIdentifiers":13988,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-e56c3fe761407ec267ebd1a0c84aedc80ac3bdb205176e189d97dc2e8a05779b","complete":true,"records":10077,"lastAttemptAt":"2026-11-26T11:17:21.6356503+00:00","lastSuccessAt":"2026-11-26T11:17:21.3788523+00:00","error":null,"lastVerifiedAt":"2026-11-26T11:17:21.6356503+00:00","snapshotPublishedAt":"2026-11-26T11:03:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-26T11:17:10.6863731+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-26T11:17:10.6863731+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-fffef56e2e70c77cb72f3bdafb9a1d8f09e5da49f03183f085255cda1efc5924","complete":true,"records":3223,"lastAttemptAt":"2026-11-26T11:17:21.648961+00:00","lastSuccessAt":"2026-11-26T09:00:18.6655097+00:00","error":null,"lastVerifiedAt":"2026-11-26T11:17:21.648961+00:00","snapshotPublishedAt":"2026-11-26T08:18:18+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-8698bd4581bffdf60331385b908b4d88fabe88056768869f1ad293ce600acce3","complete":true,"records":233154,"lastAttemptAt":"2026-11-26T11:17:10.79308+00:00","lastSuccessAt":"2026-11-26T10:19:17.1045441+00:00","error":null,"lastVerifiedAt":"2026-11-26T11:17:10.79308+00:00","snapshotPublishedAt":"2026-11-26T09:48:14+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}