Read the docs
TI-2024-22683 Aliases CVE-2024-34342GHSA-87hq-q4gp-9wr4

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

Priority LOW 35CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
High
Impact type
Cross-site scripting
Confidentiality · integrity · availability
High · High · Low
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.01064 64th percentileScored 2026-11-07
Fix Fixed react-pdf (wojtekmaj): 7.7.3, 8.0.2react-pdf (npm): 7.7.3, 8.0.2

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
wojtekmajreact-pdfbefore 7.7.3; 8.0.0 to before 8.0.27.7.3, 8.0.2Patch availableCNA
—react-pdf (npm)before 7.7.37.7.3Patch availableGHSA-87hq-q4gp-9wr4
—react-pdf (npm)8.0.0 to before 8.0.28.0.2Patch availableGHSA-87hq-q4gp-9wr4
  • react-pdf Vendorwojtekmaj Affected before 7.7.3; 8.0.0 to before 8.0.2 Fixed in 7.7.3, 8.0.2 Patch available CNA
  • react-pdf (npm) Vendor— Affected before 7.7.3 Fixed in 7.7.3 Patch available GHSA-87hq-q4gp-9wr4
  • react-pdf (npm) Vendor— Affected 8.0.0 to before 8.0.2 Fixed in 8.0.2 Patch available GHSA-87hq-q4gp-9wr4

CPE names CISA-ADP · 1

CPEVersionsRoleVendor
cpe:2.3:a:pdf.js_viewer_project:pdf.js_viewer:*:*:*:*:*:wordpress:*:*——Pdf.js Viewer Project
  • cpe:2.3:a:pdf.js_viewer_project:pdf.js_viewer:*:*:*:*:*:wordpress:*:* Versions — — ·Pdf.js Viewer Project

Remediation

  • Fix · CNA react-pdf (wojtekmaj) Fixed in 7.7.3, 8.0.2
  • Fix · GHSA-87hq-q4gp-9wr4 react-pdf (npm) Fixed in 7.7.3 Advisory →
  • Fix · GHSA-87hq-q4gp-9wr4 react-pdf (npm) Fixed in 8.0.2 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-34342
  2. 2026-10-03 Alias added: GHSA-87hq-q4gp-9wr4

References

Sources