Arbitrary Code Injection The advisory has been revoked - it doesn't affect any version of package react-pdf  (opens in a new tab)


Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
70.66% (100th 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 Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-REACTPDF-6814406
  • published8 May 2024
  • disclosed7 May 2024
  • creditThomasRinsma

Introduced: 7 May 2024

CVE-2024-4367  (opens in a new tab)
CWE-94  (opens in a new tab)

Amendment

This was deemed not a vulnerability.

Overview

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

Affected versions of this package are vulnerable to Arbitrary Code Injection in font_loader.js, which passes input to the eval() function when the default isEvalSupported option is in use. An attacker can execute code by convincing a user to open a malicious PDF file.

Workaround

This vulnerability can be avoided by setting isEvalSupported to false.