high

CVE-2026-16633

npm · pdfjs-dist

Summary

PDF.js: Arbitrary JavaScript execution upon opening a malicious PDF

Severity
high
CWE
CWE-79
Also known as
GHSA-hq66-cqwq-w95j
Published
2026-08-06
Updated
2026-08-06

Advisory details

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.

References

Related advisories

Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.

Check my repo

Summarize with AI

ChatGPTClaudePerplexity

Sources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.