pdfjs-dist
Affected
- introduced
5.6.83, fixed6.2.108(semver)
Fixed versions
6.2.108
Fix
- Fixed version
6.2.108npm install [email protected]
Advisory
Also known as: CVE-2026-16633
PDF.js: Arbitrary JavaScript execution upon opening a malicious PDF
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.
High Basis: The source's own band: HIGH
5.6.83, fixed 6.2.108 (semver)6.2.108
6.2.108npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0