← Back to scan
File as GitHub Issue repo: trekhleb/javascript-algorithms

Push this scan report to trekhleb/javascript-algorithms

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

Action `actions/setup-node` pinned to mutable ref `@v4`

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
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … src/data-structures/priority-queue/Prio…:39
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … src/data-structures/lru-cache/LRUCacheO…:30
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … src/data-structures/graph/GraphVertex.js:44
HIGH MINED115 Action `codecov/codecov-action` pinned to mutable ref `@v4` .github/workflows/CI.yml:35
HIGH MINED115 Action `actions/setup-node` pinned to mutable ref `@v4` .github/workflows/CI.yml:21
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v4` .github/workflows/CI.yml:18
HIGH GHSA-c2c7-rcm5-vvqj picomatch: GHSA-c2c7-rcm5-vvqj package-lock.json
HIGH GHSA-7r86-cg39-jmmj minimatch: GHSA-7r86-cg39-jmmj package-lock.json
HIGH GHSA-3ppc-4f35-3m26 minimatch: GHSA-3ppc-4f35-3m26 package-lock.json
HIGH GHSA-23c5-xmqv-rm74 minimatch: GHSA-23c5-xmqv-rm74 package-lock.json
HIGH GHSA-rf6f-7fwh-wjgh flatted: GHSA-rf6f-7fwh-wjgh package-lock.json
HIGH GHSA-25h7-pfq9-p65f flatted: GHSA-25h7-pfq9-p65f package-lock.json
HIGH GHSA-fv7c-fp4j-7gwp @babel/plugin-transform-modules-systemjs: GHSA-fv7c-fp4j-7gwp package-lock.json
MED SEC087 [SEC087] JS: weak Math.random for crypto: Math.random() is not cryptographically secure; … src/algorithms/statistics/weighted-rand…:39
MED DEPCUR-NPM npm package `eslint-plugin-jest` is 2 major version(s) behind (27.9.0 -> 29.15.2) package.json
MED GHSA-3v7f-55p6-f55p picomatch: GHSA-3v7f-55p6-f55p package-lock.json
MED GHSA-f886-m6hf-6m8v brace-expansion: GHSA-f886-m6hf-6m8v package-lock.json
MED GHSA-2g4f-4pwh-qvx6 ajv: GHSA-2g4f-4pwh-qvx6 package-lock.json
LOW DEPCUR-NPM npm package `jest` is minor version(s) behind (30.2.0 -> 30.4.2) package.json
LOW DEPCUR-NPM npm package `@babel/cli` is minor version(s) behind (7.28.6 -> 7.29.7) package.json
LOW AIC003 Duplicated implementation block across source files src/data-structures/stack/Stack.js:3
LOW AIC003 Duplicated implementation block across source files src/data-structures/linked-list/LinkedL…:78
LOW AIC003 Duplicated implementation block across source files src/data-structures/heap/MinHeapAdhoc.js:2
LOW AIC003 Duplicated implementation block across source files src/algorithms/graph/depth-first-search…:1
LOW AIC003 Duplicated implementation block across source files src/algorithms/graph/bridges/graphBridg…:20
INFO DEPCUR-NPM npm package `@babel/preset-env` is patch version(s) behind (7.29.0 -> 7.29.7) package.json
Reset to top 5 26 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `trekhleb/javascript-algorithms`

**Score: 81/100 (B+)**  ·  26 findings  ·  scanned 2026-06-05 04:30 UTC  ·  23,589 LOC

| Severity | Count |
|---|---|
| CRITICAL | 0 |
| HIGH | 13 |
| MEDIUM | 5 |
| LOW | 7 |

📊 [Full filterable report](https://repobility.com/scan/8d3d103e-42f8-4e30-88b0-2b7bde54a800/)  ·  ![scorecard](https://repobility.com/scan/8d3d103e-42f8-4e30-88b0-2b7bde54a800/report.png?v=1780633808-s2)

### Top findings

1. **HIGH** `SEC128` — Async function without await — fire-and-forget Promise (AI mistake)
   `src/data-structures/priority-queue/PriorityQueue.js:39`
2. **HIGH** `SEC128` — Async function without await — fire-and-forget Promise (AI mistake)
   `src/data-structures/lru-cache/LRUCacheOnMap.js:30`
3. **HIGH** `SEC128` — Async function without await — fire-and-forget Promise (AI mistake)
   `src/data-structures/graph/GraphVertex.js:44`
4. **HIGH** `MINED115` — Action `codecov/codecov-action` pinned to mutable ref `@v4`
   `.github/workflows/CI.yml:35` · ✓ Repobility
5. **HIGH** `MINED115` — Action `actions/setup-node` pinned to mutable ref `@v4`
   `.github/workflows/CI.yml:21` · ✓ Repobility

---

**Security note**: this issue is public. If any flagged finding is a real, exploitable vulnerability, please redirect to your `SECURITY.md` policy or open a [private security advisory](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability) instead. We're happy to close this and re-submit privately.

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/8d3d103e-42f8-4e30-88b0-2b7bde54a800/_
Megaproject â high spam risk
Could not determine 'trekhleb/javascript-algorithms' 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.