XSS in Wojtekmaj React-Pdf

CVE-2024-34342

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.

Vulnerability class: XSS (Cross-Site Scripting)

EPSS: 0.011 (62.0th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 7.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2024-34342?
CVE-2024-34342 is a high-severity vulnerability in Wojtekmaj React-Pdf, classified under Cross-site Scripting. CVSS score: 7.1/10. Published 2024-05-07.
How severe is CVE-2024-34342?
High severity. CVSS v3 base score is 7.1 out of 10.
Is CVE-2024-34342 known to be exploited?
3 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.