Skip to content

CVE-2026-16633 PDF.js: Arbitrary JavaScript execution upon opening a malicious PDF

HighCVSS 8.6
Published
Unknown
Updated
Exploit status
No public exploit known

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
npm pdfjs-dist(npm) >= 5.6.83, < 6.2.108 6.2.108 Fixed

Affected products

ProductAffected versionsFixed in
npm pdfjs-dist(npm) >= 5.6.83, < 6.2.108 6.2.108

References