Medium

PDF.js < 4.2.67 - Arbitrary JavaScript Execution

  • Disclosed: 07.05.2024
  • Updated: 11.10.2026 10:22

PDF.js is vulnerable to Arbitrary JavaScript Execution in versions prior to 4.2.67. This is due to a missing type check when handling fonts. This makes it possible for authenticated attackers, with contributor-level or above permissions, to execute arbitrary JavaScript if they can successfully trick a user into opening a crafted PDF file.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package pdfjs-dist < 4.2.67 4.2.67
WordPress plugin DearFlip – PDF Flipbook, 3D Flipbook, PDF embed, PDF viewer <= 1.15.5 1.15.6
WordPress plugin ARI Fancy Lightbox – Popup for WordPress <= 1.3.14 1.3.15
WordPress plugin BSK PDF Manager <= 3.6 3.6.1
WordPress plugin EmbedPress – PDF Embedder, 3D PDF FlipBook, Google Reviews, YouTube Videos, Upload & Embed PDF documents <= 4.0.2 4.0.3
WordPress plugin PDF Embedder – PDF Viewer & Embed PDF Files for WordPress <= 4.7.1 4.8.0
WordPress plugin PDF viewer for Elementor & Gutenberg <= 1.3.2 no fix
WordPress plugin PDF.js Viewer <= 2.1.8.1 2.2
WordPress plugin PDF Poster – Let visitors read PDF's without leaving the page <= 2.1.21 2.1.22
WordPress plugin PDF Viewer for Elementor <= 2.9.3 no fix
WordPress plugin Tainacan <= 0.21.5 0.21.6
WordPress plugin Wonder PDF Embed <= 2.7 2.8

References

CVSS score 6.4/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Weakness (CWE)
CWE-754, CWE-79
Platform
npm, WordPress
Package
pdfjs-dist, DearFlip – PDF Flipbook, 3D Flipbook, PDF embed, PDF viewer, ARI Fancy Lightbox – Popup for WordPress
Disclosed
07.05.2024
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-wgrm-67xf-hhpq - CC BY 4.0

Wordfence Intelligence - 8ce7aa01-7e79-4048-a84d-fcb9541d5f8b - Wordfence Intelligence

Copyright 1999-2026 The MITRE Corporation

Copyright 2012-2026 Defiant Inc.

This record contains material that is subject to copyright

Copyright 1999-2026 The MITRE Corporation

CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE®). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy.

https://www.cve.org/Legal/TermsOfUse
Copyright 2012-2026 Defiant Inc.

Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy.

https://www.wordfence.com/wordfence-intelligence-terms-and-conditions/
Wordfence Intelligence
Wordfence Intelligence - Defiant, Inc.
Copyright Defiant, Inc. All rights reserved except as granted below.
License grant, section 3.1 of the Wordfence Intelligence Terms and Conditions (January 26, 2026):

Subject to this Agreement, Company hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute the Service. Any copy you make for such purposes is authorized provided that you reproduce Company’s copyright designation, this license, and the license of any disclosed Company licensor in any such copy.

Full applicable Agreement: https://www.wordfence.com/wordfence-intelligence-terms-and-conditions/

Vulnerability history: pdfjs-dist

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
3
First → latest
05.2022 08.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 1
  • Medium 2

Disclosures per year

  1. 2022: 1
  2. 2023: 0
  3. 2024: 1
  4. 2025: 0
  5. 2026: 1
  1. High CVE-2026-16633 >= 5.6.83, < 6.2.108 6.2.108
  2. PDF.js < 4.2.67 - Arbitrary JavaScript Execution this entry
    Medium · 6.4 CVE-2024-4367 < 4.2.67 4.2.67
  3. Medium · 6.4 CVE-2018-5158 >= 2.0.0, < 2.0.550, < 1.10.100 2.0.550, 1.10.100

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.