Skip to main content
← All vulnerabilities
CVE-2024-34342GHSA-87HQ-Q4GP-9WR4

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 7.7.3, 8.0.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • wojtekmaj react-pdf

    fixed in 7.7.3; From 8.0.0 · fixed in 8.0.2

  • react-pdfnpm

    fixed in 7.7.3

  • react-pdfnpm

    From 8.0.0 · fixed in 8.0.2

References 6

GitHub · wojtekmaj/react-pdf

GitHub · mozilla/pdf.js