{"cve":"CVE-2024-34342","nvd":{"published":"2024-05-07T15:15:09.730","modified":"2026-06-17T07:33:12.770","status":"Deferred","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L","score":7.1},"cwes":["CWE-79"],"references":["https://github.com/mozilla/pdf.js/commit/85e64b5c16c9aaef738f421733c12911a441cec6","https://github.com/mozilla/pdf.js/pull/18015","https://github.com/mozilla/pdf.js/security/advisories/GHSA-wgrm-67xf-hhpq","https://github.com/wojtekmaj/react-pdf/commit/208f28dd47fe38c33ce4bac4205b2b0a0bb207fe","https://github.com/wojtekmaj/react-pdf/commit/671e6eaa2e373e404040c13cc6b668fe39839cad"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:49:23.840078609+00:00"},"epss":{"cve":"CVE-2024-34342","score":0.01064,"percentile":0.6467,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-87hq-q4gp-9wr4","url":"https://osv.dev/vulnerability/GHSA-87hq-q4gp-9wr4","summary":"react-pdf vulnerable to arbitrary JavaScript execution upon opening a malicious PDF with PDF.js","modified":"2026-02-04T02:26:44.613595Z","packages":[{"ecosystem":"npm","name":"react-pdf","purl":"pkg:npm/react-pdf","ranges":["<7.7.3"],"fixed":["7.7.3"]},{"ecosystem":"npm","name":"react-pdf","purl":"pkg:npm/react-pdf","ranges":[">=8.0.0 <8.0.2"],"fixed":["8.0.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}