{"id":"EUVD-2025-25313","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-25T22:42:16.1560205+00:00","complete":true,"records":1805,"lastAttemptAt":"2026-11-25T22:42:16.1560205+00:00","lastSuccessAt":"2026-11-25T22:42:16.3518847+00:00","error":null,"lastVerifiedAt":"2026-11-25T22:42:16.3518858+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-8d356adab43082cb10bb7c033ed58312cf2ad2f0fb10e0afdf27fc89fa361f3b-a791c4ad73499e46e91bcc146a643b45276af7b919c3259ab884617c89a2d95d","complete":true,"records":432407,"lastAttemptAt":"2026-11-25T22:40:19.4265585+00:00","lastSuccessAt":"2026-11-25T22:40:19.2739565+00:00","error":null,"lastVerifiedAt":"2026-11-25T22:40:19.4265585+00:00","snapshotPublishedAt":"2026-11-25T22:24:45+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-6467cf303b9c4adeae08bf6fb6e170f9","complete":false,"records":13940,"lastAttemptAt":"2026-11-25T22:51:41.1072211+00:00","lastSuccessAt":"2026-11-25T22:51:41.102+00:00","error":"228 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-25T22:51:41.102+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13741,"expectedIdentifiers":13988,"failedIdentifiers":228},{"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-25T22:42:16.1560205+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-25T22:42:16.1560205+00:00","lastSuccessAt":"2026-11-25T22:42:19.3612705+00:00","error":null,"lastVerifiedAt":"2026-11-25T22:42:19.3612713+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-8e840b05432a49efb968d76319ac0a9f","complete":true,"records":13952,"lastAttemptAt":"2026-11-25T22:42:38.9072237+00:00","lastSuccessAt":"2026-11-25T22:42:38.903+00:00","error":null,"lastVerifiedAt":"2026-11-25T22:42:38.903+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-70b1e3058f76fab20c77bb1c4924a4c57f7654dd208befb5b1f237e682d6ddca","complete":true,"records":10077,"lastAttemptAt":"2026-11-25T22:42:16.0009792+00:00","lastSuccessAt":"2026-11-25T11:46:59.5507764+00:00","error":null,"lastVerifiedAt":"2026-11-25T22:42:16.0009792+00:00","snapshotPublishedAt":"2026-11-25T11:03:15+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-25T22:40:19.5984425+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-25T22:40:19.5984425+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-0a1fbc3a25620c693ed60988364419c242ae43d2ba36599b392cc9b77eb1d618","complete":true,"records":3223,"lastAttemptAt":"2026-11-25T22:42:16.1131999+00:00","lastSuccessAt":"2026-11-25T20:40:29.2100444+00:00","error":null,"lastVerifiedAt":"2026-11-25T22:42:16.1131999+00:00","snapshotPublishedAt":"2026-11-25T20:03:11+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-273ab7942e63d876cae83d282bc0135a3f0a318c0162480fe57a1ff357bb4743","complete":true,"records":233144,"lastAttemptAt":"2026-11-25T22:42:15.8635751+00:00","lastSuccessAt":"2026-11-25T22:42:14.667494+00:00","error":null,"lastVerifiedAt":"2026-11-25T22:42:15.8635751+00:00","snapshotPublishedAt":"2026-11-25T22:33:21+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}