همهٔ گزارش‌ها
زیاد

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

متن اصلی

نسخه‌های متأثر

نسخه‌های متأثر
>= 8.0.0, < 8.0.2
نسخهٔ اصلاح‌شده
8.0.2
نسخه‌های متأثر
< 7.7.3
نسخهٔ اصلاح‌شده
7.7.3

بهره‌برداری

CVE-2024-34342

احتمال بهره‌برداری در ۳۰ روز آینده: 1.06%

FIRST EPSS · ۱۴۰۵/۰۸/۲۷

شرح آسیب‌پذیری

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

پیوندها

گزارش‌دهندگان

  • calixteman
  • ThomasRinsma
  • wojtekmaj