GHSA-hq66-cqwq-w95jHigh

PDF.js: Arbitrary JavaScript execution upon opening a malicious PDF

Published
August 6, 2026
Last Modified
August 6, 2026

🔗 CVE IDs covered (1)

📋 Description

Impact

If PDF.js is used to load a malicious PDF, and PDF.js is configured with enableScripting set to true (which is the default value) and no CSP for disallowing script-src, unrestricted attacker-controlled JavaScript will be executed in the context of the hosting domain.

Patches

Workarounds

Set enableScripting to false or set a CSP.

🎯 Affected products1

  • npm/pdfjs-dist:>= 5.6.83, < 6.2.108

🔗 References (3)