Advisory

GHSA-hq66-cqwq-w95j

Also known as: CVE-2026-16633

Summary

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

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-08-06 21:12 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

pdfjs-dist

npm · All systems

Affected

  • introduced 5.6.83, fixed 6.2.108 (semver)

Fixed versions

6.2.108

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences