{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-34342","published":"2024-05-07T15:15:09.730000Z","last_modified":"2026-06-17T07:33:12.770000Z","status":"Deferred","cvss":{"version":"3.1","score":7.1,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L","source":"security-advisories@github.com","primary":false},"auth":false,"cwes":["CWE-79"],"cpes":[],"cpes_truncated":false,"vendors":["wojtekmaj"],"products":["wojtekmaj/react-pdf"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"total"},"epss":{"score":0.01179,"percentile":0.67564,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-87hq-q4gp-9wr4","ecosystem":"npm","name":"react-pdf","purl":"pkg:npm/react-pdf","ranges":[{"introduced":"0","fixed":"7.7.3"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-87hq-q4gp-9wr4","ecosystem":"npm","name":"react-pdf","purl":"pkg:npm/react-pdf","ranges":[{"introduced":"8.0.0","fixed":"8.0.2"}],"versions":[],"versions_truncated":false}],"severity":"high","priority_score":58,"links":{"html_es":"/es/cve/CVE-2024-34342/","html_en":"/en/cve/CVE-2024-34342/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-34342","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-34342"},"untrusted":{"vendor_name":"wojtekmaj","product_name":"react-pdf","desc_en":"react-pdf displays PDFs in React apps. 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. This vulnerability is fixed in 7.7.3 and 8.0.2.","affected":[{"untrusted_vendor":"wojtekmaj","untrusted_product":"react-pdf","versions":[]},{"untrusted_vendor":"pdf.js_viewer_project","untrusted_product":"pdf.js_viewer","versions":[]}],"references":[{"url":"https://github.com/mozilla/pdf.js/commit/85e64b5c16c9aaef738f421733c12911a441cec6","tags":[]},{"url":"https://github.com/mozilla/pdf.js/pull/18015","tags":[]},{"url":"https://github.com/mozilla/pdf.js/security/advisories/GHSA-wgrm-67xf-hhpq","tags":[]},{"url":"https://github.com/wojtekmaj/react-pdf/commit/208f28dd47fe38c33ce4bac4205b2b0a0bb207fe","tags":[]},{"url":"https://github.com/wojtekmaj/react-pdf/commit/671e6eaa2e373e404040c13cc6b668fe39839cad","tags":[]},{"url":"https://github.com/wojtekmaj/react-pdf/security/advisories/GHSA-87hq-q4gp-9wr4","tags":[]}]}}