Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-34342

published high CVSS 3.1 · 7.1

react-pdf's PDF.js vulnerable to arbitrary JavaScript execution upon opening a malicious PDF

Published
07 May 2024, 14:29:06 UTC
Updated
02 Aug 2024, 02:51:10 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
wojtekmaj — react-pdf< 7.7.3 · >= 8.0.0, < 8.0.2 Affected Not stated GitHub_M
pdf.js_viewer_project — pdf.js_viewer< 7.7.3, >= 8.0.0, < 8.0.2 · Other versions: unknown Affected Not stated CISA-ADP

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.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.1 / 10
Severity
high
Provider
GitHub_M · cna
Vector string
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
wojtekmaj react-pdf < 7.7.3 (affected)>= 8.0.0, < 8.0.2 (affected) GitHub_M · cna
pdf.js_viewer_project pdf.js_viewer < 7.7.3, >= 8.0.0, < 8.0.2 (affected)Default: unknown CISA-ADP · adp

Weaknesses

1
  • CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (GitHub_M · cna)

References

6

Provider assertions

3

GitHub_M · cna

react-pdf's PDF.js vulnerable to arbitrary JavaScript execution upon opening a malicious PDF

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
0d97ef63a20ff55d02ddc07201148ab389b9aadc7d02df05602d56afc7218100
Ingested
23 Sep 2026, 08:23:23 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected