A AegiFlow
HIGHCVSS 8.6

CVE-2026-16633

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

Published
2026-08-06
Modified
2026-08-06
Aliases
GHSA-hq66-cqwq-w95j
Sources
github-advisory

Summary

### 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.

Affected packages

EcosystemPackageAffected versionsFixed versions
npmpdfjs-dist6.2.108

Remediation: Upgrade to 6.2.108 or later.

References

Includes data from the GitHub Advisory Database, licensed under CC-BY 4.0.

CVE® is a registered trademark of The MITRE Corporation. CVE content reproduced under the CVE Terms of Use; copyright designation © MITRE.