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

exploitDog

github логотип

GHSA-87hq-q4gp-9wr4

Опубликовано: 07 мая 2024
Источник: github
Github: Прошло ревью
CVSS3: 7.1

Описание

react-pdf vulnerable to arbitrary JavaScript execution upon opening a malicious PDF with PDF.js

Summary

If PDF.js is used to load a malicious PDF, and PDF.js is configured with isEvalSupported set to true (which is the default value), unrestricted attacker-controlled JavaScript will be executed in the context of the hosting domain.

Patches

This patch forces isEvalSupported to false, removing the attack vector.

Workarounds

Set options.isEvalSupported to false, where options is Document component prop.

References

Пакеты

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

react-pdf

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

< 7.7.3

7.7.3

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

react-pdf

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

>= 8.0.0, < 8.0.2

8.0.2

EPSS

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

7.1 High

CVSS3

Дефекты

CWE-79

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

CVSS3: 7.1
nvd
больше 1 года назад

react-pdf displays PDFs in React apps. If PDF.js is used to load a malicious PDF, and PDF.js is configured with `isEvalSupported` set to `true` (which is the default value), unrestricted attacker-controlled JavaScript will be executed in the context of the hosting domain. This vulnerability is fixed in 7.7.3 and 8.0.2.

EPSS

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

7.1 High

CVSS3

Дефекты

CWE-79