Skip to content

Arbitrary JavaScript execution upon opening a malicious PDF

High
calixteman published GHSA-hq66-cqwq-w95j Jul 28, 2026

Package

npm pdfjs-dist (npm)

Affected versions

>= 5.6.83

Patched versions

6.2.108

Description

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

https://bugzilla.mozilla.org/show_bug.cgi?id=2055885

Severity

High

CVE ID

CVE-2026-16633

Weaknesses

No CWEs

Credits