CVE-2024-34342
High
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.
SeverityHigh
CVSS7.1
Exploit probability—
ProductReact-pdf
PublishedMay 7, 2024
First seenMay 7, 2024
Weakness typeCWE-79Cross-site scripting (XSS)
How to fix
Update
- react-pdf7.7.3, 8.0.2 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| react-pdfnpm | v < 7.7.3, 8.0.0 ≤ v < 8.0.2 | 7.7.3, 8.0.2 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.