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.
Advisories
Source ID Title
EUVD EUVD EUVD-2024-1513 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.
Github GHSA Github GHSA GHSA-87hq-q4gp-9wr4 react-pdf vulnerable to arbitrary JavaScript execution upon opening a malicious PDF with PDF.js
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

No history.

Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2024-08-02T02:51:10.948Z

Reserved: 2024-05-02T06:36:32.436Z

Link: CVE-2024-34342

cve-icon Vulnrichment

Updated: 2024-08-02T02:51:10.948Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2024-05-07T15:15:09.730

Modified: 2024-11-21T09:18:28.030

Link: CVE-2024-34342

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses