{"answers":{"affected":"2 open source packages ship an affected version, including pdfjs-dist. It affects 4 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-4367 exists.","fix":"Upgrade pdfjs-dist to 4.2.67 or later.","what":"CVE-2024-4367 is a medium-severity code injection vulnerability in Debian Debian Linux, published on 14 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-4367 and fix it if it is affected.\n\nWhat it is: CVE-2024-4367 is a medium-severity code injection vulnerability in Debian Debian Linux, published on 14 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-4367 exists.\n\nAffected packages and fixed versions:\n- pdfjs-dist (npm): affected all versions; fixed in 4.2.67\n- pdfjs-dist (npm): affected all versions; fixed in 4.2.67\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-4367/ (Markdown: https://insights.sbomify.com/CVE-2024-4367/index.md)","id":"CVE-2024-4367","markdown":"https://insights.sbomify.com/CVE-2024-4367/index.md","name":"CVE-2024-4367","record":{"aliases":["CLSA-2026-1775089656","CLSA-2026-1788868464","DEBIAN-CVE-2024-4367","DSA-5742-1","ECHO-6650-6464-0a5f","GHSA-wgrm-67xf-hhpq","ROOT-APP-NPM-CVE-2024-4367","ROOT-OS-DEBIAN-12-CVE-2024-4367","UBUNTU-CVE-2024-4367"],"analysis":{"component_type":"browser","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Firefox PDF.js","requires_auth":"none","summary":"Missing type check in PDF.js allows arbitrary JavaScript execution, requiring users to upgrade Firefox and Thunderbird.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mozilla","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"firefox","vendor":"mozilla"},{"product":"thunderbird","vendor":"mozilla"},{"product":"open-xchange_appsuite_frontend","vendor":"open-xchange"}],"cvss":{"score":5.6,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-754","name":"Improper Check for Unusual or Exceptional Conditions"}],"description":"A type check was missing when handling fonts in PDF.js, which would allow arbitrary JavaScript execution in the PDF.js context. This vulnerability affects Firefox \u003c 126, Firefox ESR \u003c 115.11, and Thunderbird \u003c 115.11.","ecosystems":["npm"],"exploits":{"exploitdb":1,"first_seen":"2024-05-20","github_poc":29,"max_poc_stars":203,"metasploit":0,"nuclei":0,"refs":[{"date":"2024-05-20T10:02:23Z","kind":"github_poc","ref":"https://github.com/LOURC0D3/CVE-2024-4367-PoC","stars":203,"title":"CVE-2024-4367 \u0026 CVE-2024-34342 Proof of Concept"},{"date":"2024-05-20T22:56:10Z","kind":"github_poc","ref":"https://github.com/s4vvysec/CVE-2024-4367-POC","stars":58,"title":"CVE-2024-4367 arbitrary js execution in pdf js"},{"date":"2024-06-13T15:14:47Z","kind":"github_poc","ref":"https://github.com/Zombie-Kaiser/cve-2024-4367-PoC-fixed","stars":12,"title":"PDF.js是由Mozilla维护的基于JavaScript的PDF查看器。此漏洞允许攻击者在打开恶意 PDF 文件后立即执行任意 JavaScript 代码。这会影响所有 Firefox 用户 （\u003c126），因为 Firefox 使用 PDF.js 来显示 PDF 文件，但也严重影响了许多基于 Web 和 Electron 的应用程序，这些应用程序（间接）使用 PDF.js 进行预览功能。"},{"date":"2024-05-22T18:05:47Z","kind":"github_poc","ref":"https://github.com/spaceraccoon/detect-cve-2024-4367","stars":11,"title":"YARA detection rule for CVE-2024-4367 arbitrary javascript execution in PDF.js"},{"date":"2024-06-17T11:39:41Z","kind":"github_poc","ref":"https://github.com/snyk-labs/pdfjs-vuln-demo","stars":10,"title":"This project is intended to serve as a proof of concept to demonstrate exploiting the vulnerability in the PDF.js (pdfjs-dist) library reported in CVE-2024-4367"},{"date":"2024-06-19T23:23:07Z","kind":"github_poc","ref":"https://github.com/UnHackerEnCapital/PDFernetRemotelo","stars":6,"title":"PoC - Prueba de Concepto de CVE-2024-4367 en conjunto al CVE-2023-38831 en un solo Script"},{"date":"2024-09-04T14:43:33Z","kind":"github_poc","ref":"https://github.com/Masamuneee/CVE-2024-4367-Analysis","stars":5,"title":"Analysis and PoC for CVE-2024-4367: arbitrary JavaScript execution (XSS) in PDF.js"},{"date":"2024-05-22T23:18:20Z","kind":"github_poc","ref":"https://github.com/clarkio/pdfjs-vuln-demo","stars":4,"title":"This project is intended to serve as a proof of concept to demonstrate exploiting the vulnerability in the PDF.js (pdfjs-dist) library reported in CVE-2024-4367"}],"tier":"weaponised"},"has_fix":true,"headline":"PDF.js vulnerable to arbitrary JavaScript execution upon opening a malicious PDF","id":"CVE-2024-4367","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":"debian:debian_linux","products":["debian:debian_linux","mozilla:firefox","mozilla:thunderbird"],"type":"code_injection","year":"2024"},"n_packages":2,"n_references":6,"next":{"headline":"Use after free in Chrome","id":"CVE-2024-4368"},"packages":[{"ecosystem":"npm","fixed":["4.2.67"],"introduced":["0"],"last_affected":[],"package":"pdfjs-dist","purl":null,"source":"GHSA-wgrm-67xf-hhpq"},{"ecosystem":"npm","fixed":["4.2.67"],"introduced":["0"],"last_affected":[],"package":"pdfjs-dist","purl":"pkg:npm/pdfjs-dist","source":"GHSA-wgrm-67xf-hhpq"}],"prev":{"headline":"Spectra – WordPress Gutenberg Blocks \u003c= 2.13.0 - Authenticated (Author+) Stored Cross-Site Scripting","id":"CVE-2024-4366"},"products":["Firefox","Firefox ESR","Thunderbird"],"published":"2024-05-14","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-05-12","vendors":["Mozilla"]},"summary":"Missing type check in PDF.js allows arbitrary JavaScript execution, requiring users to upgrade Firefox and Thunderbird.","url":"https://insights.sbomify.com/CVE-2024-4367/"}