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)
Published · last modified .
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.
EPSS exploit prediction
EPSS: 0.011 (63.5th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 63rd percentile — 63.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.011 · newest: 0.011 · change: 0.000
Affected products
- Wojtekmaj React-Pdf — versions < 7.7.3, >= 8.0.0, < 8.0.2
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/wojtekmaj/react-pdf/security/advisories/GHSA-87hq-q4gp-9wr4
- github.com/mozilla/pdf.js/security/advisories/GHSA-wgrm-67xf-hhpq
- github.com/mozilla/pdf.js/pull/18015
- github.com/mozilla/pdf.js/commit/85e64b5c16c9aaef738f421733c12911a441cec6
- github.com/wojtekmaj/react-pdf/commit/208f28dd47fe38c33ce4bac4205b2b0a0bb207fe
- github.com/wojtekmaj/react-pdf/commit/671e6eaa2e373e404040c13cc6b668fe39839cad
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.