Code Injection in PDF.js - CVE-2026-16633
Published: July 29, 2026
PDF.js
Detailed vulnerability description
The vulnerability allows a remote attacker to execute arbitrary JavaScript in the context of the hosting domain.
The vulnerability exists due to improper neutralization of active content in PDF scripting support in PDF.js when processing a malicious PDF with scripting enabled. A remote attacker can supply a specially crafted PDF to execute arbitrary JavaScript in the context of the hosting domain.
Exploitation requires the application to load the crafted PDF with enableScripting set to true and without a content security policy that disallows script sources.