Gathering detailed insights and metrics for pdfjs-dist
Gathering detailed insights and metrics for pdfjs-dist
Gathering detailed insights and metrics for pdfjs-dist
Gathering detailed insights and metrics for pdfjs-dist
@types/pdfjs-dist
Stub TypeScript definitions entry for pdfjs-dist, which provides its own types definitions
pdfjs-dist-sign
Generic build of Mozilla's PDF.js library.
@bundled-es-modules/pdfjs-dist
mirror of pdfjs-dist, bundled and exposed as ES module
pdfjs-dist-sig
Generic build of Mozilla's PDF.js library.
npm install pdfjs-dist
Typescript
Module System
Min. Node Version
Node Version
NPM Version
98.1
Supply Chain
76.8
Quality
87.5
Maintenance
100
Vulnerability
87.3
License
JavaScript (70.4%)
Fluent (26.7%)
CSS (1.97%)
HTML (0.91%)
TypeScript (0.02%)
Total Downloads
477,118,946
Last Day
142,901
Last Week
3,516,240
Last Month
15,083,338
Last Year
154,503,034
Apache-2.0 License
50,894 Stars
20,903 Commits
10,315 Forks
1,123 Watchers
1 Branches
398 Contributors
Updated on May 31, 2025
Minified
Minified + Gzipped
Latest Version
5.2.133
Package Id
pdfjs-dist@5.2.133
Unpacked Size
33.48 MB
Size
8.98 MB
File Count
373
NPM Version
10.9.2
Node Version
22.14.0
Published on
Apr 27, 2025
Cumulative downloads
Total Downloads
1
PDF.js is a Portable Document Format (PDF) library that is built with HTML5. Our goal is to create a general-purpose, web standards-based platform for parsing and rendering PDFs.
This is a pre-built version of the PDF.js source code. It is automatically generated by the build scripts.
For usage with older browsers/environments, without native support for the
latest JavaScript features, please see the legacy/
folder.
Please see this wiki page for information about supported browsers/environments.
See https://github.com/mozilla/pdf.js for learning and contributing.
8.8/10
Summary
Malicious PDF can inject JavaScript into PDF Viewer
Affected Versions
< 1.10.100
Patched Versions
1.10.100
8.8/10
Summary
Malicious PDF can inject JavaScript into PDF Viewer
Affected Versions
>= 2.0.0, < 2.0.550
Patched Versions
2.0.550
8.8/10
Summary
PDF.js vulnerable to arbitrary JavaScript execution upon opening a malicious PDF
Affected Versions
<= 4.1.392
Patched Versions
4.2.67
Reason
30 commit(s) and 13 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
GitHub workflow tokens follow principle of least privilege
Details
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
SAST tool is run on all commits
Details
Reason
project is fuzzed
Details
Reason
0 existing vulnerabilities detected
Reason
Found 13/14 approved changesets -- score normalized to 9
Reason
binaries present in source code
Details
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
Project has not signed or included provenance with any releases.
Details
Score
Last Scanned on 2025-05-26
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreLast Day
-2%
142,901
Compared to previous day
Last Week
-7.1%
3,516,240
Compared to previous week
Last Month
-0.6%
15,083,338
Compared to previous month
Last Year
31.8%
154,503,034
Compared to previous year