PDF.js: Arbitrary JavaScript execution upon opening a malicious PDF
osv · GHSA-hq66-cqwq-w95j
Published### 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.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-16633 · CVE overview and exploitation status
osv · GHSA-hq66-cqwq-w95j
Related changes
Linked by CVE identifierNo related changes are available here.