Install
pdfjs-dist
Generic build of Mozilla's PDF.js library.
6.5.438Latest, 1 Nov 2026
259MDownloads, last month
0Advisories on the latest
3Advisories, all versions
Apache-2.0Licence
54KStars
8.3/10OpenSSF Scorecard
Source · Homepage · Ask AI Mode · · Markdown
Known advisories
| Severity | Advisory | Fix | Published |
|---|---|---|---|
| High | PDF.js: Arbitrary JavaScript execution upon opening a malicious PDF CVE-2026-16633 | Fixed in 6.2.108 | 6 Aug 2026 |
| High | PDF.js vulnerable to arbitrary JavaScript execution upon opening a malicious PDF CVE-2024-4367 | Fixed in 4.2.67 | 7 May 2024 |
| High | Malicious PDF can inject JavaScript into PDF Viewer CVE-2018-5158 | Fixed in 2.0.550, 1.10.100 | 14 May 2022 |
In the news
- pdfjs-dist standard_fonts Missing in Next.js standalone dev.to, 19 Nov 2026
- How to get pdfjs-dist working with Next.js 14 stackoverflow.com, 31 Dec 2024
- "Module parse failed: Unexpected character '#'" while using pdfjs-dist in Angular application stackoverflow.com, 10 Dec 2024
- Jest Test Fails with "Cannot Find Module 'mock-pdf.worker.js'" When Mocking pdf.worker.js for pdfjs-dist stackoverflow.com, 4 Dec 2024
- PDFjs-dist - TypeError: Promise.withResolvers is not a function - Webpack Node JS stackoverflow.com, 29 Nov 2024
Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.