PDF.js 5.6.83 < 6.2.108 Arbitrary JavaScript Execution

high Web App Scanning Plugin ID 115554

Synopsis

PDF.js 5.6.83 < 6.2.108 Arbitrary JavaScript Execution

Description

According to its self-reported version number, PDF.js is 5.6.83 or later but prior to 6.2.108. It is, therefore, affected by an arbitrary JavaScript execution vulnerability. When PDF.js loads a malicious PDF document with the enableScripting option set to true (the default value) and no Content Security Policy restricting script-src, attacker-controlled JavaScript is executed in the context of the hosting domain. (CVE-2026-16633)

Note that the scanner has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Upgrade to PDF.js version 6.2.108 or later. Alternatively, set the enableScripting option to false or deploy a Content Security Policy disallowing script-src.

See Also

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

https://github.com/mozilla/pdf.js/security/advisories/GHSA-hq66-cqwq-w95j

Plugin Details

Severity: High

ID: 115554

Type: Version Based

Published: 10/2/2026

Updated: 10/2/2026

Scan Template: basic, full, pci, scan

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 58.15

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2026-16633

CVSS v3

Risk Factor: High

Base Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

CVSS Score Source: CVE-2026-16633

CVSS v4

Risk Factor: High

Base 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

CVSS Score Source: CVE-2026-16633

Vulnerability Information

CPE: cpe:2.3:a:mozilla:pdf.js:*:*:*:*:*:*:*:*

Exploit Ease: No known exploits are available

Patch Publication Date: 7/28/2026

Vulnerability Publication Date: 8/5/2026

Reference Information

CVE: CVE-2026-16633