Skip to content
OpenAdvisories
High · 7.1 CVE-2024-34342 EUVD-2024-1513GHSA-87hq-q4gp-9wr4

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

Published May 7, 2024 · Updated Aug 2, 2024 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
wojtekmaj react-pdf < 7.7.3, >= 8.0.0, < 8.0.2 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm react-pdf < 7.7.3 7.7.3 GHSA-87hq-q4gp-9wr4
npm react-pdf >= 8.0.0, < 8.0.2 8.0.2 GHSA-87hq-q4gp-9wr4

References