{"id":"GHSA-hq66-cqwq-w95j","summary":"PDF.js: Arbitrary JavaScript execution upon opening a malicious PDF ","details":"### Impact\n\nIf 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.\n\n### Patches\n\n### Workarounds\nSet `enableScripting` to `false` or set a CSP.","aliases":["CVE-2026-16633"],"modified":"2026-09-10T03:50:53.721358409Z","published":"2026-08-06T21:12:27Z","database_specific":{"cwe_ids":["CWE-79"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2026-08-06T21:12:27Z","nvd_published_at":null},"references":[{"type":"WEB","url":"https://github.com/mozilla/pdf.js/security/advisories/GHSA-hq66-cqwq-w95j"},{"type":"WEB","url":"https://bugzilla.mozilla.org/show_bug.cgi?id=2055885"},{"type":"PACKAGE","url":"https://github.com/mozilla/pdf.js"}],"affected":[{"package":{"name":"pdfjs-dist","ecosystem":"npm","purl":"pkg:npm/pdfjs-dist"},"ranges":[{"type":"SEMVER","events":[{"introduced":"5.6.83"},{"fixed":"6.2.108"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/08/GHSA-hq66-cqwq-w95j/GHSA-hq66-cqwq-w95j.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"}]}