Lucene search

K
githubGitHub Advisory DatabaseGHSA-WGRM-67XF-HHPQ
HistoryMay 07, 2024 - 10:25 a.m.

PDF.js vulnerable to arbitrary JavaScript execution upon opening a malicious PDF

2024-05-0710:25:08
GitHub Advisory Database
github.com
72
pdf.js
javascript
malicious pdf
vulnerability
patch
eval
workaround
bugzilla
mozilla
hosting domain
reference

6.8 Medium

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

10.4%

Impact

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.

Patches

The patch removes the use of eval:
https://github.com/mozilla/pdf.js/pull/18015

Workarounds

Set the option isEvalSupported to false.

References

https://bugzilla.mozilla.org/show_bug.cgi?id=1893645

Affected configurations

Vulners
Node
pdfjsdistRange4.1.392
CPENameOperatorVersion
pdfjs-distle4.1.392