Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-f9qj-4c5x-cpcw

Опубликовано: 20 авг. 2025
Источник: github
Github: Прошло ревью
CVSS4: 6.9
CVSS3: 6.5

Описание

elysia-cors Origin Validation Error

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.

Пакеты

Наименование

@elysiajs/cors

npm
Затронутые версииВерсия исправления

< 1.3.1

1.3.1

EPSS

Процентиль: 12%
0.00041
Низкий

6.9 Medium

CVSS4

6.5 Medium

CVSS3

Дефекты

CWE-178
CWE-346

Связанные уязвимости

CVSS3: 6.5
nvd
6 месяцев назад

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.

EPSS

Процентиль: 12%
0.00041
Низкий

6.9 Medium

CVSS4

6.5 Medium

CVSS3

Дефекты

CWE-178
CWE-346