NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

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

highCVSS 4.0 8.6GHSA-hq66-cqwq-w95j

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.

Published Aug 6, 2026

Affected packages

pdfjs-dist

Ecosystem
npm
Affected
>= 5.6.83, < 6.2.108
Fixed in
6.2.108
Check
npm ls pdfjs-dist

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to wlayzz.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More npm vulnerabilities

All npm entries