CVE-2024-34342: wojtekmaj react-pdf Cross-site Scripting
CVSS: 7.1v3.1HighDeferred
AliasesGHSA-87hq-q4gp-9wr4
Published 07-05-2024Last modified 02-08-2024
Vulnerability summary
CVE-2024-34342 is a high (CVSS 7.1) Cross-site Scripting vulnerability in wojtekmaj react-pdf. EPSS estimates a 1.06% chance of exploitation in the next 30 days, higher than 64.1% of scored vulnerabilities.
CVSS score
7.1/10
010
High · v3.1 (CVE.org)EPSS score
1.06%
0%100%
Low · 0.00 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded
Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 07-05-2024PublishedVulnerability first disclosed.
- 02-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 versionHigh 7.1Preferred score · CVE.org (CNA)
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:LSourcesAll 3 agree
- OSV · NpmEcosystem advisory · calculated7.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L
- NVDNIST7.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L
EPSS trend
Probability
1.06%
Chance of exploitation in the next 30 days
Percentile
64%
Versus all other CVEs
30-day change
0.00 pp
From 1.06% on 20-09-2026
20-09-202620-10-2026
EPSS score1.06%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Npm1 product
- react-pdf< 7.7.3 | ≥ 8.0.0, < 8.0.2
Wojtekmaj1 product
- react-pdf< 7.7.3 | ≥ 8.0.0, < 8.0.2
2 vendors · 2 products