Arbitrary Code Injection Affecting react-pdf package, versions <7.7.3 >=8.0.0 <8.0.2


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JS-REACTPDF-6814518
  • published 8 May 2024
  • disclosed 7 May 2024
  • credit ThomasRinsma

How to fix?

Upgrade react-pdf to version 7.7.3, 8.0.2 or higher.

Overview

react-pdf is a package used to display existing PDFs.

Affected versions of this package are vulnerable to Arbitrary Code Injection via the isEvalSupported configuration parameter. An attacker can execute code by convincing a user to open a malicious PDF file. This is only exploitable if isEvalSupported is set to true, which is the default setting.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
7.1 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    Low