← Back to scan
File as GitHub Issue repo: mozilla/pdf.js

Push this scan report to mozilla/pdf.js

Click the green button below to open GitHub’s new-issue form, pre-filled with the report title, summary table, top findings, and an embedded score-card image. No authentication needed — you review on GitHub before submitting. Repobility is credited as the scanner.

Embedded score card image

This image will render at the top of the issue body. Hosted on Repobility, refreshes automatically after re-scans.

Repobility score card

Issue title

Workflow uses `secrets.CODECOV_TOKEN` on a `pull_request` trigger

Curate findings to include

Pick exactly which findings appear in the issue body. By default the top 5 are included. Uncheck noise, check what matters.

Top 5 (default)
Severity Rule Title File:line
CRIT MINED024 [MINED024] Js Eval Usage: eval() executes arbitrary code. Code injection risk. src/shared/internal_evt.js:22
CRIT MINED024 [MINED024] Js Eval Usage: eval() executes arbitrary code. Code injection risk. src/scripting_api/initialization.js:50
CRIT MINED024 [MINED024] Js Eval Usage: eval() executes arbitrary code. Code injection risk. src/pdf.sandbox.js:55
CRIT MINED116 [MINED116] Workflow uses `secrets.CODECOV_TOKEN` on a `pull_request` trigger: This workfl… .github/workflows/font_tests.yml:76
CRIT MINED116 [MINED116] Workflow uses `secrets.CODECOV_TOKEN` on a `pull_request` trigger: This workfl… .github/workflows/integration_tests.yml:99
CRIT MINED116 [MINED116] Workflow uses `secrets.CODECOV_TOKEN` on a `pull_request` trigger: This workfl… .github/workflows/unit_tests.yml:86
CRIT MINED116 [MINED116] Workflow uses `secrets.CODECOV_TOKEN` on a `pull_request` trigger: This workfl… .github/workflows/coverage_browser_test…:92
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … src/display/editor/drawers/highlight.js:166
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … extensions/chromium/options/options.js:20
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … extensions/chromium/extension-router.js:98
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… src/core/postscript/lexer.js:150
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… extensions/chromium/telemetry.js:152
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… extensions/chromium/contentscript.js:216
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… extensions/chromium/options/migration.js:46
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… extensions/chromium/extension-router.js:40
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… extensions/chromium/contentscript.js:21
MED CFG006 [CFG006] Missing .gitignore: No .gitignore file. Risk of committing secrets and build art…
MED ERR002 [ERR002] Empty Catch Block: Empty catch blocks hide errors. src/core/editor/pdf_images.js:114
MED ERR002 [ERR002] Empty Catch Block: Empty catch blocks hide errors. src/core/decode_stream.js:142
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … src/core/postscript/lexer.js:150
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … extensions/chromium/telemetry.js:152
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … extensions/chromium/contentscript.js:216
MED AIC004 Suspicious implementation file appears unreferenced extensions/chromium/suppress-update.js:1
MED CORE_LARGE_FILES Average file size is 504 lines (recommend <300)
LOW SEC132 [SEC132] String concat where the language has interpolation (AI style drift): String buil… src/display/content_disposition.js:69
LOW AIC003 Duplicated implementation block across source files test/types/modern.ts:3
LOW AIC003 Duplicated implementation block across source files test/font/font_post_spec.js:46
LOW AIC003 Duplicated implementation block across source files test/font/font_post_spec.js:25
LOW AIC003 Duplicated implementation block across source files test/font/font_os2_spec.js:44
LOW AIC003 Duplicated implementation block across source files src/scripting_api/initialization.js:2
LOW AIC003 Duplicated implementation block across source files src/display/transport_stream.js:129
LOW AIC003 Duplicated implementation block across source files src/display/node_stream.js:55
LOW AIC003 Duplicated implementation block across source files src/display/network.js:2
LOW AIC003 Duplicated implementation block across source files src/display/editor/stamp.js:743
LOW AIC003 Duplicated implementation block across source files src/display/editor/stamp.js:495
LOW AIC003 Duplicated implementation block across source files src/display/editor/ink.js:243
LOW AIC003 Duplicated implementation block across source files src/display/editor/ink.js:111
LOW AIC003 Duplicated implementation block across source files src/core/to_unicode_map.js:19
LOW AIC003 Duplicated implementation block across source files src/core/flate_stream.js:120
LOW AIC002 Source file name looks like an AI patch artifact extensions/chromium/suppress-update.js:1
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … extensions/chromium/options/migration.js:57
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … extensions/chromium/extension-router.js:81
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … extensions/chromium/contentscript.js:243
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… extensions/chromium/extension-router.js:8
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… extensions/chromium/contentscript.js:8
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… extensions/chromium/background.js:8
Reset to top 5 46 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `mozilla/pdf.js`

**Score: 87/100 (B)**  ·  46 findings  ·  scanned 2026-06-05 11:07 UTC  ·  155,760 LOC

| Severity | Count |
|---|---|
| CRITICAL | 7 |
| HIGH | 9 |
| MEDIUM | 8 |
| LOW | 16 |

📊 [Full filterable report](https://repobility.com/scan/2f74ab68-f443-492b-a9d6-3f4280151f6a/)  ·  ![scorecard](https://repobility.com/scan/2f74ab68-f443-492b-a9d6-3f4280151f6a/report.png?v=1780657634-s2)

### Top findings

1. **CRITICAL** `MINED024` — Js Eval Usage
   `src/shared/internal_evt.js:22` · CWE-95 · ✓ Repobility
2. **CRITICAL** `MINED024` — Js Eval Usage
   `src/scripting_api/initialization.js:50` · CWE-95 · ✓ Repobility
3. **CRITICAL** `MINED024` — Js Eval Usage
   `src/pdf.sandbox.js:55` · CWE-95 · ✓ Repobility
4. **CRITICAL** `MINED116` — Workflow uses `secrets.CODECOV_TOKEN` on a `pull_request` trigger
   `.github/workflows/font_tests.yml:76` · ✓ Repobility
5. **CRITICAL** `MINED116` — Workflow uses `secrets.CODECOV_TOKEN` on a `pull_request` trigger
   `.github/workflows/integration_tests.yml:99` · ✓ Repobility

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/2f74ab68-f443-492b-a9d6-3f4280151f6a/_
Already filed
'mozilla' is on the known-megaproject org list. These projects use auto-triage bots and established security disclosure channels. Unsolicited automated issues from Repobility would be perceived as AI-generated spam. For security findings, follow the project's SECURITY.md policy. For non-security findings, open a focused PR or community discussion instead.
Already filed
This repo publishes a SECURITY.md policy and the scan contains 9 Critical/High security finding(s). Public issue filing would violate coordinated disclosure. Submit privately via the project's security reporting channel.
Megaproject â high spam risk
Could not determine 'mozilla/pdf.js' star count (GitHub API rate-limited or unreachable). When in doubt about repo size, prefer opening a focused PR or a discussion rather than an issue.

The button opens GitHubâs new-issue page in a new tab. You will see the title + body pre-filled â review, edit if you want, then click GitHubâs "Submit new issue" button. Repobility never posts anything on your behalf.

For real security findings on big repos: use the project's SECURITY.md or private advisory flow instead of a public issue.