{"id":"CVE-2026-16633","aliases":["GHSA-hq66-cqwq-w95j","ROOT-APP-NPM-CVE-2026-16633"],"status":"published","title":"PDF.js: Arbitrary JavaScript execution upon opening a malicious PDF","description":"### 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.","severity":{"version":"4.0","score":8.6,"vector":"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","level":"high","from":"ghsa"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2026-08-06T21:12:27Z","modified":"2026-09-10T03:50:53Z","fixes":[{"ecosystem":"npm","package":"pdfjs-dist","fixed_in":["6.2.108"],"sources":["ghsa","osv"]},{"ecosystem":"Root:npm","package":"pdfjs-dist","fixed_in":["6.0.227-aikido.1"],"sources":["osv"]},{"ecosystem":"Root:npm","package":"@rootio/pdfjs-dist","fixed_in":["6.0.227-root.io.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"pdfjs-dist","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.6.83"},{"fixed":"6.2.108"}]}]},{"source":"osv","ecosystem":"npm","package":"pdfjs-dist","ranges":[{"type":"SEMVER","events":[{"introduced":"5.6.83"},{"fixed":"6.2.108"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"pdfjs-dist","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.227-aikido.1"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"@rootio/pdfjs-dist","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.227-root.io.1"}]}]}],"references":[{"url":"https://github.com/mozilla/pdf.js/security/advisories/GHSA-hq66-cqwq-w95j","tags":["web"]},{"url":"https://bugzilla.mozilla.org/show_bug.cgi?id=2055885","tags":["web"]},{"url":"https://github.com/advisories/GHSA-hq66-cqwq-w95j"},{"url":"https://github.com/mozilla/pdf.js","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-hq66-cqwq-w95j","title":"PDF.js: Arbitrary JavaScript execution upon opening a malicious PDF ","description":"### 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.","status":"published","published":"2026-08-06T21:12:27Z","modified":"2026-08-06T21:12:27Z","cvss":[{"version":"4.0","score":8.6,"vector":"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","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:40:57.999375Z"}],"osv":[{"id":"GHSA-hq66-cqwq-w95j","title":"PDF.js: Arbitrary JavaScript execution upon opening a malicious PDF ","description":"### 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.","status":"published","published":"2026-08-06T21:12:27Z","modified":"2026-09-10T03:50:53.721358409Z","cvss":[{"version":"4.0","score":8.6,"vector":"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","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:49.28217Z"},{"id":"ROOT-APP-NPM-CVE-2026-16633","title":"CVE-2026-16633 in pdfjs-dist - Patched by Root","description":"Root has patched CVE-2026-16633 in the pdfjs-dist package for Root:npm. Multiple fixed versions available.","status":"published","published":"2026-08-14T09:00:37Z","modified":"2026-08-14T10:15:03.145120998Z","updated_at":"2026-11-02T15:53:27.649662Z"}]}}
