CVE-2024-34342

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

Published May 7, 2024 CVSS 3.1 · 7.1 High EPSS 1.2% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

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
History

No history.

Subscriptions

No data.

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 2, 2024, 2:51 AM
Reserved
May 2, 2024, 6:36 AM
Status
Deferred
Published
May 7, 2024, 3:15 PM
Modified
Jun 17, 2026, 7:33 AM