pdfjs-dist
Affected
- introduced
0, fixed4.2.67(semver)
Fixed versions
4.2.67
Fix
- Fixed version
4.2.67npm install [email protected]
Advisory
Also known as: CVE-2024-4367
PDF.js vulnerable to arbitrary JavaScript execution upon opening a malicious PDF
Impact
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.
Patches
The patch removes the use of eval:
https://github.com/mozilla/pdf.js/pull/18015
Workarounds
Set the option isEvalSupported to false.
References
https://bugzilla.mozilla.org/show_bug.cgi?id=1893645
High Basis: The source's own band: HIGH
0, fixed 4.2.67 (semver)4.2.67
4.2.67npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0