What 10,000 open-source repositories look like

repo-janitor scanned popular libraries, applications, infrastructure and tooling at pinned commits and read their full git history. Only findings a user sees by default (high and medium confidence) are counted.

Data from November 22, 2026

10,000repositories scanned
82median health score
179,175dated TODOs
3.4 yearsmedian TODO age

594.5M lines of code

7M files

13.5M commits read

57.7M GitHub stars between them

What is in the dataset
Technology and snapshot counts refer to pinned scan records, including historical aliases. A project can contain several technologies.
distinct GitHub projects
10,000
pinned scan records
10,007
historical alias records
7

Technology footprint

File extensions across the pinned trees, including secondary languages, generated code and vendored files. This measures file presence, not files analysed or equal security coverage across languages.

language / formatrecords with filesfiles present
JavaScript4,030354,611
Python3,117359,017
TypeScript2,255613,029
C / C++1,861335,724
Java1,213414,905
Go1,187362,442
Kotlin904177,466
Rust880139,221
Swift87481,363
PHP751222,972
Ruby684115,212
C#653296,001
Vue36830,497
Dart35980,194
Terraform29139,504
Scala23757,901
Elixir15215,305
Svelte10914,123
Erlang904,628
Solidity372,037

Snapshot completeness

file inventories at the pinned commit
10,007
external metadata snapshots at the pinned commit
10,007
snapshots with a successful transport audit
1,714
legacy snapshots without a transport audit
8,293
snapshots with provider response-size limits
339

External metadata was checked between and .

A successful transport audit verifies requests, not vulnerability coverage. Older snapshots predate that audit. Response limits can omit metadata; a missing finding is not proof of safety. These dates describe dependency and license lookups, not the date of the latest commit.

In one glance
26

years: the age of the oldest TODO still in the code

31%

of projects: one person wrote 80%+ of the commits

7%

have had no commit for a year or more

84%

pin a GitHub Action to a tag that can be moved

Grades
Score adjusts for size: warnings weigh less in big codebases, critical findings never do.
A
B
C
D
F
A: 3428 · 34%B: 2577 · 26%C: 2618 · 26%D: 1175 · 12%F: 209 · 2%
Score distribution
Repos per 10-point band. Median 82.
58
0
24
10
39
20
88
30
277
40
898
50
2033
60
1224
70
1938
80
3428
90
Security exposure
Share of repos with at least one such finding. Hard-coded credentials are not shown: on labelled samples nearly all of them were test fixtures and examples, so they stay hidden as low confidence.
any critical finding5%
insecure code pattern (injection, eval…)4%
infrastructure misconfiguration1%
Dockerfile issue3%
no lockfile committed4%
Known vulnerabilities in dependencies
10,007 repos checked against OSV (osv.dev) on 2026-11-22, at their pinned commits. Versions come from lockfiles; without one, from the lowest version a manifest allows, which can overstate. Dev, test and docs dependencies count only in the first number.
38%

have at least one known vulnerability

33%

in dependencies that ship (not dev, test or docs)

18%

have a critical one

An affected project typically carries 11 of them.

By ecosystem: share of projects using it that ship at least one known-vulnerable package from it

Go · 1,08960%
Packagist · 60653%
crates.io · 84751%
npm · 3,19240%
RubyGems · 60336%
PyPI · 1,67732%

Packages most often behind them, share of all repos

golang.org/x/net4%
minimatch4%
golang.org/x/crypto4%
brace-expansion3%
source-map-js3%
qs3%
form-data3%
postcss3%
zod3%
nanoid3%
What the findings are
All default-visible findings across the corpus, by severity.
critical: 2,000 · 0%warning: 220,504 · 43%info: 286,150 · 56%
By language
Main language by lines of code. Density counts findings per 1,000 lines in repos over 500 lines.
languagereposmedianper 1k lines
Python1423842.3
TypeScript1175812.1
JavaScript1022852.3
Go941821.6
Java647792.4
Rust631682.0
PHP608832.2
C++503672.1
C#497792.1
Swift474882.2
Kotlin454792.3
Ruby423842.6
C317731.3
Scala196663.8
Busy repos score lower
Active: ≥ 50 commits in the last year (12 repos). Quiet: < 10 (9995). More churn, more debt — or simply more code being looked at.
active94
quiet82

People and time

Bus factor: how much rests on one person
Share of all commits made by the single most active author. Median project has 17 contributors over its life.
under 50%: 39%50–80%: 30%80–95%: 15%95% or more: 16%

One person wrote 80%+ of commits, by project size

< 5k lines35%
5k–50k31%
50k–200k26%
> 200k17%
Older projects are not the worst ones
Median score by the year of the first commit. Very old and very young projects differ in why they score as they do: one carries legacy, the other has had less time to collect it.
before 2010 · 34967
2010–2014 · 160580
2015–2018 · 247780
2019–2022 · 251177
2023 or later · 306587
Pulse
Quiet projects ship end-of-life runtimes less often than active ones: 0% against 0%. Many quiet projects are finished libraries with few runtime pins.
87%committed in the last month
7%quiet for a year or more
7%quiet for three years or more
Tests and CI by language
Languages with at least 30 projects. A test file anywhere counts; this says nothing about coverage.
testsCI
Scala92%89%
Go91%88%
Ruby91%91%
PHP79%76%
TypeScript77%82%
Java76%65%
Kotlin70%77%
Rust70%90%
Python64%64%
JavaScript59%68%
C++52%72%
Swift52%70%
C50%58%
C#41%69%

Tools and habits

Tool wars
Of the projects using any tool of a kind that year, the share using each one. A project can use two at once.

JavaScript package managers · 2020 → 2026

npm66→56%
pnpm1→27%
Yarn43→15%
Bun0→5%

Python packaging · 2020 → 2026

requirements.txt89→64%
uv0→31%
Poetry8→6%
Pipenv9→2%

JavaScript linters · 2020 → 2026

ESLint (flat config)0→52%
ESLint (legacy config)100→39%
Biome0→12%

Bundlers · 2020 → 2026

Vite0→77%
webpack100→23%
Instructions for AI coding agents
Share of all projects with a file written for AI agents (CLAUDE.md, AGENTS.md, Cursor rules, Copilot instructions…), by month: dashed area is any file, lines are each file. Today: 19%.
0%9%19%2023202420252026
any of them 19%AGENTS.md 12%CLAUDE.md / .claude 11%Copilot instructions 2%Cursor rules <1%GEMINI.md <1%

Which file, today

AGENTS.md12%
CLAUDE.md / .claude11%
Copilot instructions2%
Cursor rules<1%
GEMINI.md<1%
Windsurf rules<1%
Workflows still on retired runtimes
Oldest major version of each official action a project uses. Red: versions whose Node 12/16 runtime GitHub has retired; upload-artifact v3 stopped working entirely in 2025.
actions/checkout19% on a retired version
actions/setup-node11% on a retired version
actions/setup-python19% on a retired version
actions/cache14% on a retired version
actions/upload-artifact3% on a retired version

37% of all action uses are pinned to a commit SHA; 15% of projects pin every one.

What containers are built from
Base images in 1982 projects with a Dockerfile. A project can use several.
Alpine38%
Debian33%
language image (full)25%
Ubuntu16%
scratch / busybox9%
distroless / Wolfi7%
RHEL family4%
service image2%
23%

use :latest or no tag

5%

pin every base image by digest

Outside view

Popular projects score lower — because they are bigger
Median score and findings per 1,000 lines by GitHub stars. Stars from deps.dev. Popular projects have fewer problems per line; they simply have many more lines.
median scorefindings / 1k lines
under 100 · 386862.9
100–1k · 2355832.8
1k–10k · 2125752.2
10k–50k · 1296661.3
50k+ · 193691.1
Cross-checked with OpenSSF Scorecard
3365 of our repos have a Scorecard result on deps.dev. The overall scores measure different things — Scorecard rates security process, we rate the state of the code — and barely correlate (ρ = -0.21). Where both check the same thing, they agree:

pinning of actions and dependencies

Scorecard 0–2: we flag92%
Scorecard 8–10: we flag14%

workflow token permissions

Scorecard 0–2: we flag87%
Scorecard 8–10: we flag1%
Licenses
As reported by deps.dev for each repository.
MIT44%
Apache-2.024%
other or none19%
GPL-3.05%
BSD-3-Clause3%
AGPL-3.02%
GPL-2.01%
others1%
Most GitHub Actions can be swapped under you
Of 6966 repos using GitHub Actions. A tag like @v4 can be moved to new code by the action's owner — the tj-actions/changed-files attack. Pin to a commit SHA.
84%

pin at least one action to a mutable tag

65%

do it for a third-party action

67%

never restrict the workflow token

End-of-life runtimes
38%

of 2195 Node.js projects still declare or test an end-of-life Node

34%

of 1423 Python projects still support an end-of-life Python

How common each problem is
Share of repos where the rule fired at least once.
Duplicated code66%
Old file only one person ever touched63%
GitHub action on a mutable tag56%
Workflow token not restricted47%
Old TODO / FIXME46%
Third-party action on a mutable tag45%
No tests28%
Commented-out code27%
Export nothing imports18%
Broken link in docs17%
End-of-life Node.js12%
End-of-life Python7%
Project files
README0%
LICENSE0%
CI74%
Tests64%
CONTRIBUTING4%
CHANGELOG0%
SECURITY.md2%
Code of Conduct2%
Bigger codebases, lower scores — even after the size adjustment
Median score by lines of code.
< 5k lines · 417291
5k–50k · 373273
50k–200k · 147366
> 200k · 63066
How old the debt is
179,175 TODO/FIXME comments dated with git blame; 37% are older than five years. The oldest:
  1. 26.7 yearsapache/xerces2-j src/org/apache/xml/serialize/HTMLSerializer.java:865
  2. 26.7 yearsapache/xerces2-j src/org/apache/xml/serialize/OutputFormat.java:868
  3. 26.0 yearsorocos-toolchain/log4cpp src/NDC.cpp:125
  4. 25.8 yearsapache/xerces2-j src/org/apache/xerces/jaxp/DefaultValidationErrorHandler.java:32
  5. 25.8 yearsapache/xerces2-j src/org/apache/xerces/jaxp/SAXParserFactoryImpl.java:134
Do good practices go with healthier code?
Median score gap between repos with and without a practice, compared within the same size band. Correlation, not causation: issue templates and CONTRIBUTING mark busy, popular projects rather than careless ones.
OpenSSF Scorecard · 123+6.4
TypeScript · 1077+1.8
SECURITY.md · 1567+1.0
ESLint flat config · 524+0.3
Prettier · 584-2.7
CodeQL · 585-2.8
Renovate · 468-3.3
.editorconfig · 1760-3.5
CODEOWNERS · 967-3.7
CONTRIBUTING · 3151-4.2
PR template · 1791-4.3
Dev container · 383-4.9
Dependabot · 2174-5.1
Changesets · 107-5.7
Issue templates · 2892-5.9
pre-commit · 492-7.1
Compare score and finding density
Positive score gaps mean a higher score; negative density gaps mean fewer findings per line. Similar-size gaps are weighted comparisons within four size bands, using bands with at least five records in each group. Density excludes records with 500 lines or fewer. These associations do not establish that a tool improves or harms a project.
practicerecords using itscore gap, rawscore gap, similar sizefindings / 1k lines gap
OpenSSF Scorecard123+1.0+6.4-1.11
TypeScript1,0770.0+1.8+0.06
SECURITY.md1,567-9.0+1.0-0.46
ESLint flat config524-5.0+0.3-0.48
Prettier584-7.0-2.7+0.50
CodeQL585-13.0-2.8-0.02
Renovate468-4.0-3.3+0.41
.editorconfig1,760-9.0-3.5+0.09
CODEOWNERS967-12.0-3.7+0.14
CONTRIBUTING3,151-13.0-4.2-0.12
PR template1,791-15.0-4.3+0.04
Dev container383-15.0-4.9-0.04
Dependabot2,174-12.0-5.1+0.10
Changesets107-16.0-5.7+0.18
Issue templates2,892-17.0-5.9+0.31
pre-commit492-14.0-7.1-0.09
How the same projects changed since 2012
Share of repos (alive that year) whose git history shows the practice. The corpus is today's survivors.

CI: Travis → GitHub Actions

0%50%100%20122014201620182020202220242026
GitHub Actions 70%Travis CI 5%

Security: Dependabot, SECURITY.md, CodeQL

0%25%50%20122014201620182020202220242026
Dependabot 22%SECURITY.md 16%CodeQL 6%

Tooling: TypeScript, flat ESLint config, pnpm

0%15%30%20122014201620182020202220242026
TypeScript 11%ESLint flat 5%pnpm 5%

Python: setup.py → pyproject.toml

0%10%20%20122014201620182020202220242026
setup.py 3%pyproject.toml 7%

Median commits and authors per year

07515020122014201620182020202220242026
commits 21authors 2
Checked against deliberately vulnerable apps
Apps whose holes are known in advance. An injection counts as high confidence only when request input is visible next to it or in a caller in another file.
How far to trust these numbers
Precision on hand-labelled findings. 81,229 low-confidence findings are hidden and left out of every number here.
High confidence · 79287%
Medium confidence · 53465%
Low confidence (hidden) · 62612%
precision
Precision = TP / (TP + FP) on reviewed findings still present in this snapshot. Unreviewed findings are excluded. This is a selected review sample, not a measure of vulnerability prevalence or recall.
confidenceconfirmed findings (TP)false alarms (FP)precision
High confidence69010287%
Medium confidence34518965%
Low confidence (hidden)7455212%
Cleanest and messiest

Score 100

100ai/nanoid0 findings
100jshttp/cookie0 findings
100electron/fiddle0 findings
100metabase/toucan0 findings

Lowest scores — anonymous

0very large C++ · old TODOs3,452 findings
0very large Ruby · old TODOs771 findings
0very large PHP · old TODOs628 findings
0very large C · old TODOs549 findings
0very large Python · dead code477 findings
0very large Python · old TODOs322 findings
0large PHP · old TODOs321 findings
0very large JavaScript · old TODOs312 findings

We do not name the projects with the most problems. Language, size and what dominates is the useful part.

Recall: how many known vulnerabilities a scanner finds
1,222 GitHub Security Advisories with one fix commit: the code before and after the fix is scanned, and a finding counts when the fix removed it. Deep analysis is counted on PHP only, Bandit on Python only. Most real vulnerabilities are logic flaws (access control, CSRF) that no pattern scanner sees.
LanguageRegular scanDeep PHPSemgrepBandit
javascript4% · 8/224—1% · 3/224—
python5% · 12/222—7% · 16/2276% · 14/227
php3% · 6/2193% · 7/2173% · 7/223—
java4% · 8/201—2% · 5/205—
go1% · 1/193—3% · 5/194—
ruby4% · 6/149—1% · 2/149—
All3% · 41/12083% · 7/2173% · 38/12226% · 14/227
Vulnerability classRegular scanDeep PHPSemgrepBandit
access-control0% · 0/870% · 0/150% · 0/870% · 0/15
csrf0% · 0/850% · 0/152% · 2/850% · 0/15
cmdi7% · 6/847% · 1/156% · 5/840% · 0/13
auth0% · 0/840% · 0/150% · 0/840% · 0/15
sqli4% · 3/8321% · 3/148% · 7/8323% · 3/13
path-traversal0% · 0/810% · 0/151% · 1/820% · 0/14
code-injection13% · 10/7821% · 3/146% · 5/800% · 0/15
crypto0% · 0/780% · 0/145% · 4/7847% · 7/15
ssrf4% · 3/780% · 0/143% · 2/780% · 0/15
redos0% · 0/750% · 0/130% · 0/800% · 0/15
open-redirect0% · 0/750% · 0/151% · 1/750% · 0/14
tls7% · 4/600% · 0/23% · 2/600% · 0/14
xss0% · 0/580% · 0/80% · 0/640% · 0/7
deserialization13% · 7/560% · 0/157% · 4/5623% · 3/13
xxe14% · 7/490% · 0/158% · 4/490% · 0/14
file-upload0% · 0/490% · 0/140% · 0/490% · 0/11
prototype-pollution0% · 0/250% · 0/20% · 0/250% · 0/4
secrets4% · 1/230% · 0/24% · 1/2320% · 1/5
Tracks: where the numbers are measured
The corpus is scanned once and read in slices. Each track has its own population, its own labelling target and its own measured precision. A repository can sit in several tracks.
trackreposmedian scoreprecisionrules labelled to target
General
Every hand-picked repository. Coverage and the cuts on this page.
8,3918078% · 132638/71 (≥10)
Random layer
Random active public repositories. Corpus-wide percentages without selection bias.
1,61690not measured yet0/54 (≥5)
Security
Deliberately vulnerable apps and labs. Recall: known holes are still found.
635265% · 1271/54 (≥30)
Infrastructure
≥ 3 Terraform files, a Helm chart or a kustomization. IaC and CI rules, per format.
4297177% · 1140/59 (≥30)
Mobile
Main language Swift, Kotlin or Dart. Rules for languages with few labels so far.
1,1878184% · 960/45 (≥30)
Web backends
Server-side language and a compose file. Injection, deserialisation, SSRF, dependencies.
6757470% · 1381/53 (≥30)
How the corpus was chosen

8,391 public GitHub repositories, picked by hand in batches to cover libraries, applications, infrastructure and IaC, mobile, games, embedded, data and developer tools across 14 main languages — plus 59 deliberately vulnerable apps, used to check that real holes are still found.

Each is pinned to one commit and scanned offline with the same build; repos whose clone exceeds 2 GB are left out.

It is not a random sample. It leans towards well-known projects (median 2,991 stars; 40% under 1,000) and active ones (0% had a commit in the last year), and JavaScript, TypeScript and Python are the largest groups. Read the numbers as "popular open source", not "all code".

On top of that, a random layer of 1,616 repositories drawn uniformly from active public GitHub projects (not forks, not archived, at least 10 stars, pushed in the last year — about 840,000 repositories by GitHub search; median 28 stars). It is kept apart as its own track, so it can say what typical code looks like without the hand-picked bias.

Precision is measured on 1,952 findings checked by hand; only high and medium confidence findings are counted.

Method: repos are pinned to commits and scanned offline; findings are labelled by hand as true or false positives using one rule — is it true, and would a maintainer act on it. The benchmark, labels and these numbers are in the repo-janitor repository.