Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. pdfjs-dist
  4. ›
  5. CVE-2024-4367

CVE-2024-4367: PDF.js vulnerable to arbitrary JavaScript execution upon opening a malicious PDF

May 7, 2024 (updated May 13, 2026)

If pdf.js is used to load a malicious PDF, and PDF.js is configured with isEvalSupported set to true (which is the default value), unrestricted attacker-controlled JavaScript will be executed in the context of the hosting domain.

References

  • bugzilla.mozilla.org/show_bug.cgi?id=1893645
  • cert-portal.siemens.com/productcert/html/ssa-827383.html
  • codeanlabs.com/blog/research/cve-2024-4367-arbitrary-js-execution-in-pdf-js
  • github.com/advisories/GHSA-wgrm-67xf-hhpq
  • github.com/gogs/gogs/issues/7928
  • github.com/mozilla/pdf.js/commit/85e64b5c16c9aaef738f421733c12911a441cec6
  • github.com/mozilla/pdf.js/pull/18015
  • github.com/mozilla/pdf.js/releases/tag/v4.2.67
  • github.com/mozilla/pdf.js/security/advisories/GHSA-wgrm-67xf-hhpq
  • lists.debian.org/debian-lts-announce/2024/05/msg00010.html
  • lists.debian.org/debian-lts-announce/2024/05/msg00012.html
  • nvd.nist.gov/vuln/detail/CVE-2024-4367
  • www.exploit-db.com/exploits/52273
  • www.mozilla.org/security/advisories/mfsa2024-21
  • www.mozilla.org/security/advisories/mfsa2024-22
  • www.mozilla.org/security/advisories/mfsa2024-23

Code Behaviors & Features

Detect and mitigate CVE-2024-4367 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 4.2.67

Fixed versions

  • 4.2.67

Solution

Upgrade to version 4.2.67 or above.

Impact 8.8 HIGH

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

Learn more about CVSS

Weakness

  • CWE-754: Improper Check for Unusual or Exceptional Conditions

Source file

npm/pdfjs-dist/CVE-2024-4367.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:12 +0000.