VYPR
High severity7.1OSV Advisory· Published May 7, 2024· Updated Jun 17, 2026

CVE-2024-34342

CVE-2024-34342

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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
react-pdfnpm
< 7.7.37.7.3
react-pdfnpm
>= 8.0.0, < 8.0.28.0.2

Affected products

2

Patches

Vulnerability mechanics

References

8

News mentions

0

No linked articles in our index yet.