PDF.js < 4.2.67 - Arbitrary JavaScript Execution
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.
| Platform | Package | Vulnerable versions | Fixed 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
- https://github.com/mozilla/pdf.js/security/advisories/GHSA-wgrm-67xf-hhpq
- https://nvd.nist.gov/vuln/detail/CVE-2024-4367
- https://github.com/gogs/gogs/issues/7928
- https://github.com/mozilla/pdf.js/pull/18015
- https://github.com/mozilla/pdf.js/commit/85e64b5c16c9aaef738f421733c12911a441cec6
- https://bugzilla.mozilla.org/show_bug.cgi?id=1893645
- https://cert-portal.siemens.com/productcert/html/ssa-827383.html
- https://codeanlabs.com/blog/research/cve-2024-4367-arbitrary-js-execution-in-pdf-js
- https://github.com/mozilla/pdf.js
- https://github.com/mozilla/pdf.js/releases/tag/v4.2.67
- https://lists.debian.org/debian-lts-announce/2024/05/msg00010.html
- https://lists.debian.org/debian-lts-announce/2024/05/msg00012.html
- https://www.exploit-db.com/exploits/52273
- https://www.mozilla.org/security/advisories/mfsa2024-21
- https://www.mozilla.org/security/advisories/mfsa2024-22
- https://www.mozilla.org/security/advisories/mfsa2024-23
- http://seclists.org/fulldisclosure/2024/Aug/30
- https://www.wordfence.com/threat-intel/vulnerabilities/id/8ce7aa01-7e79-4048-a84d-fcb9541d5f8b?source=api-prod
- 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/TermsOfUseCopyright 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: PDF Embedder – PDF Viewer & Embed PDF Files for WordPress
All published vulnerabilities of this package (WordPress plugin), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 3
- First → latest
- 03.2024 05.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Medium 3
Disclosures per year
- 2024: 2
- 2025: 0
- 2026: 1
-
PDF.js < 4.2.67 - Arbitrary JavaScript Execution this entry
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.