Vulnerabilities/

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

Severity:
High

Description

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.

Recommendation

Update the pdfjs-dist package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
pdfjs-dist
Anything's wrong? Let us know Last updated on April 24, 2025

This issue is available in SmartScanner Professional

See Pricing