PDF.js < 4.2.67 Arbitrary JavaScript Execution

high Web App Scanning Plugin ID 115555

Synopsis

PDF.js < 4.2.67 Arbitrary JavaScript Execution

Description

According to its self-reported version number, PDF.js is prior to 4.2.67. It is, therefore, affected by an arbitrary JavaScript execution vulnerability due to a missing type check when handling fonts. When PDF.js loads a malicious PDF document with the isEvalSupported option set to true (the default value), attacker-controlled JavaScript is executed in the context of the hosting domain. (CVE-2024-4367)

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 4.2.67 or later. Alternatively, set the isEvalSupported option to false.

See Also

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

https://github.com/mozilla/pdf.js/pull/18015

https://github.com/mozilla/pdf.js/security/advisories/GHSA-wgrm-67xf-hhpq

Plugin Details

Severity: High

ID: 115555

Type: Version Based

Published: 10/2/2026

Updated: 10/2/2026

Scan Template: basic, full, pci, scan

Risk Information

VPR

Risk Factor: Critical

Score: 9.5

Percentile: 99.87

CVSS v2

Risk Factor: Critical

Base Score: 10

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

CVSS Score Source: CVE-2024-4367

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-2024-4367

Vulnerability Information

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

Exploit Available: true

Exploit Ease: No known exploits are available

Patch Publication Date: 4/29/2024

Vulnerability Publication Date: 5/6/2024

Reference Information

CVE: CVE-2024-4367