{"schemaVersion":3,"id":"CVE-2024-34342","aliases":["GHSA-87hq-q4gp-9wr4"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2024-05-07T14:29:06.599Z","modified":"2024-08-02T02:51:10.948Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","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","exploitability":4.1,"impact":9.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","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","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01064,"percentile":0.64154,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01064},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01064,"percentile":0.64154}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01064,"percentile":0.64154}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"}],"affected":[{"vendor":"Npm","product":"react-pdf","name":"react-pdf","label":"react-pdf","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/react-pdf","purlType":"npm","versions":[{"text":"< 7.7.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.0.0, < 8.0.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.7.3 | ≥ 8.0.0, < 8.0.2","eol":null,"hubHref":null},{"vendor":"wojtekmaj","product":"react-pdf","name":"react-pdf","label":"react-pdf","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 7.7.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.0.0, < 8.0.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.7.3 | ≥ 8.0.0, < 8.0.2","eol":null,"hubHref":"/vendor/wojtekmaj/react-pdf"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/wojtekmaj/react-pdf/security/advisories/GHSA-87hq-q4gp-9wr4","label":"github.com/wojtekmaj/react-pdf/security/advisories/GHSA-87hq-q4gp-9wr4","hostname":"github.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://github.com/mozilla/pdf.js/security/advisories/GHSA-wgrm-67xf-hhpq","label":"github.com/mozilla/pdf.js/security/advisories/GHSA-wgrm-67xf-hhpq","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/mozilla/pdf.js/pull/18015","label":"github.com/mozilla/pdf.js/pull/18015","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/mozilla/pdf.js/commit/85e64b5c16c9aaef738f421733c12911a441cec6","label":"github.com/mozilla/pdf.js/commit/85e64b5c16c9aaef738f421733c12911a441cec6","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/wojtekmaj/react-pdf/commit/208f28dd47fe38c33ce4bac4205b2b0a0bb207fe","label":"github.com/wojtekmaj/react-pdf/commit/208f28dd47fe38c33ce4bac4205b2b0a0bb207fe","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/wojtekmaj/react-pdf/commit/671e6eaa2e373e404040c13cc6b668fe39839cad","label":"github.com/wojtekmaj/react-pdf/commit/671e6eaa2e373e404040c13cc6b668fe39839cad","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-34342","label":"nvd.nist.gov/vuln/detail/CVE-2024-34342","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/wojtekmaj/react-pdf","label":"github.com/wojtekmaj/react-pdf","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CVE-2024-4367"]},"timeline":[{"kind":"published","date":"2024-05-07T14:29:06.599Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-02T02:51:10.948Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":29,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T16:53:04.683Z","stale":false,"partial":false}}