{"id":"GHSA-wgrm-67xf-hhpq","revision":"05b8bb4cfa36432eaf1ab1e9fd7aada3","records":[{"revision":"05b8bb4cfa36432eaf1ab1e9fd7aada3","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-wgrm-67xf-hhpq","aliases":["CVE-2024-4367"],"title":"PDF.js vulnerable to arbitrary JavaScript execution upon opening a malicious PDF","description":"### Impact\nIf 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.\n\n### Patches\nThe patch removes the use of `eval`:\nhttps://github.com/mozilla/pdf.js/pull/18015\n\n### Workarounds\nSet the option `isEvalSupported` to `false`. \n\n### References\nhttps://bugzilla.mozilla.org/show_bug.cgi?id=1893645","state":0,"publishedAt":"2024-05-07T10:25:08+00:00","modifiedAt":"2026-09-10T03:50:14.3814563+00:00","affected":[{"ecosystem":"npm","name":"pdfjs-dist","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"4.2.67"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/mozilla/pdf.js/security/advisories/GHSA-wgrm-67xf-hhpq","https://nvd.nist.gov/vuln/detail/CVE-2024-4367","https://github.com/gogs/gogs/issues/7928","https://github.com/mozilla/pdf.js/pull/18015","https://github.com/mozilla/pdf.js/commit/85e64b5c16c9aaef738f421733c12911a441cec6","https://bugzilla.mozilla.org/show_bug.cgi?id=1893645","https://cert-portal.siemens.com/productcert/html/ssa-827383.html","https://codeanlabs.com/blog/research/cve-2024-4367-arbitrary-js-execution-in-pdf-js","https://github.com/mozilla/pdf.js","https://github.com/mozilla/pdf.js/releases/tag/v4.2.67","https://lists.debian.org/debian-lts-announce/2024/05/msg00010.html","https://lists.debian.org/debian-lts-announce/2024/05/msg00012.html","https://www.exploit-db.com/exploits/52273","https://www.mozilla.org/security/advisories/mfsa2024-21","https://www.mozilla.org/security/advisories/mfsa2024-22","https://www.mozilla.org/security/advisories/mfsa2024-23","http://seclists.org/fulldisclosure/2024/Aug/30"],"sourceUrl":"https://github.com/advisories/GHSA-wgrm-67xf-hhpq","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-wgrm-67xf-hhpq","identifiers":["GHSA-wgrm-67xf-hhpq","CVE-2024-4367"]},"retained":false,"historicalAffected":[]}],"coverage":[]}