7.1

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.

Overall risk
29/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.1/10
010
High · v3.1 (CVE.org)
EPSS score
1.06%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 07-05-2024
    PublishedVulnerability first disclosed.
  2. 02-08-2024
    Last 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 version

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 score
1.06%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Npm1 product
  • react-pdf< 7.7.3 | ≥ 8.0.0, < 8.0.2
Wojtekmaj1 product

2 vendors · 2 products

References

8 links