Join our Newsletter — 33% off our NHI Course
Home› Guides› Open Source Security Statistics Guide: Vulnerabilities, Malware and…
Guide Software & AI Supply Chain

Open Source Security Statistics Guide: Vulnerabilities, Malware and Maintainer Risk

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 11 November 2026 12 min read
On this page

Almost every commercial application is built on open source, but most organisations cannot say how many vulnerable, outdated or abandoned components they ship. This page collects open source security figures we could trace to their publishers: Black Duck's 2026 Open Source Security and Risk Analysis (OSSRA), Sonatype's 2026 State of the Software Supply Chain, GitHub's Octoverse 2025, the Tidelift 2024 State of the Open Source Maintainer Report, the Linux Foundation and Harvard Census III, and CISA. It covers vulnerable and outdated components, ecosystem scale, maintainer capacity and remediation speed. Malicious package counts are covered in the Supply Chain Attack Statistics Guide and only summarised here. Nearly every figure is vendor research, labelled as such in the same row. Written for AppSec leads, platform teams, open source programme offices and security leaders. Last reviewed: November 2026.

Key takeaways

  • Open source is in almost everything. Black Duck's 2026 OSSRA found open source in 98% of 947 audited commercial codebases.
  • Known vulnerabilities are the norm. 87% of those codebases had at least one open source vulnerability, 78% a high-risk one and 44% a critical-risk one, with a mean of 581 vulnerabilities per codebase, up 107% in a year.
  • Stale components are the root cause. 92% of codebases contained components four or more years out of date and only 7% of components in use were the latest version (OSSRA 2026).
  • Fixed flaws keep being downloaded. Sonatype counted 42 million downloads of Log4Shell-vulnerable Log4j versions in 2025, years after fixes shipped.
  • Maintainer capacity is thin. 60% of maintainers in Tidelift's 2024 survey were unpaid, and unpaid maintainers were far less likely to sign releases or publish a security disclosure plan.

Headline statistics

StatisticFigureSource and as-of date
Commercial codebases containing open source98%Black Duck, 2026 OSSRA (947 codebases, 17 industries), February 2026
Codebases with at least one open source vulnerability87%Black Duck, 2026 OSSRA
Mean open source vulnerabilities per codebase581 (up 107%)Black Duck, 2026 OSSRA
Open source downloads across the four largest registries9.8 trillion in 2025 (up 67%)Sonatype, 2026 State of the Software Supply Chain, January 2026
Downloads of Log4Shell-vulnerable Log4j in 202542 millionSonatype, 2026 State of the Software Supply Chain
Public and open source repositories on GitHub395 millionGitHub, Octoverse 2025 (1 September 2024 to 31 August 2025)
Average time to fix critical vulnerabilities on GitHub26 days (down from 37)GitHub, Octoverse 2025
Maintainers who are unpaid60%Tidelift, 2024 State of the Open Source Maintainer Report (400+ maintainers), September 2024

Statistics by theme

Vulnerable and outdated components

Finding (947 commercial codebases)FigureSource
Codebases with high-risk vulnerabilities78%Black Duck, 2026 OSSRA
Codebases with critical-risk vulnerabilities44%Black Duck, 2026 OSSRA
Codebases with components four or more years out of date92%Black Duck, 2026 OSSRA
Codebases with components showing no development activity in two years93%Black Duck, 2026 OSSRA
Components in use that are the latest version7%Black Duck, 2026 OSSRA
Components entering codebases outside standard package managers17%Black Duck, 2026 OSSRA
Growth in open source components per codebase30%Black Duck, 2026 OSSRA
Growth in files per codebase74%Black Duck, 2026 OSSRA

OSSRA codebases come from Black Duck's audits during mergers and acquisitions, so they skew towards software being sold or acquired rather than a random sample. The 17% of components arriving outside package managers matters for defenders: copied-in code, vendored libraries and binaries are invisible to manifest-only dependency scanning and need binary or snippet analysis. See the SBOM Guide.

Ecosystem scale and persistent risk

  • Download volume: Sonatype's 2026 report, its eleventh annual edition, puts downloads across the four largest registries at 9.8 trillion in 2025, up 67% year on year, with 86% of Maven Central traffic coming from cloud service providers.
  • Log4Shell persistence: Log4Shell-vulnerable versions of Log4j were downloaded 42 million times in 2025 (Sonatype 2026). This is a consumption problem, not a supply problem: fixed versions have been available since December 2021.
  • AI-assisted upgrades: in Sonatype's analysis of 37,000 AI-driven upgrade recommendations (June to August 2025), GPT-5 hallucinated 27.8% of component versions. Treat AI-suggested dependency changes as untrusted until validated against the registry.
  • Malicious packages: Sonatype logged more than 454,600 new malicious packages in 2025, and 65% of OSSRA 2026 respondents reported a software supply chain attack in the past year (66% of those involved malicious packages, 34% hijacked legitimate ones). Details in the Supply Chain Attack Statistics Guide.

Maintainers and project health

Security or maintenance practicePaid maintainersUnpaid maintainers
Two-factor authentication76%68%
Static code analysis75%59%
Fixes and recommendations for vulnerabilities70%54%
Security disclosure plan66%43%
Secrets management58%39%
Signed releases and published artefact provenance50%28%
Code review with multiple reviewers53%27%
Defined dependency management process50%33%

Source for every row: Tidelift, 2024 State of the Open Source Maintainer Report, survey of more than 400 maintainers, published September 2024. The same survey found 60% of maintainers unpaid and 60% had quit or considered quitting. The Linux Foundation and Harvard Census III (December 2024, more than 12 million observations of open source libraries at over 10,000 companies, using data from four software composition analysis vendors) found qualitatively that much of the most widely used open source is developed by only a handful of contributors and that individual developer account security is becoming more important. The XZ Utils Backdoor 2024 shows the risk in practice: a long-running effort to gain a trusted maintainer role put a backdoor into XZ Utils 5.6.0 and 5.6.1 (CVE-2024-3094), and CISA advised downgrading to an uncompromised version such as 5.4.6.

Remediation and tooling on GitHub

FindingFigureSource
Average time to fix critical vulnerabilities26 days, down from 37GitHub, Octoverse 2025
Change in repositories receiving critical alerts26% fewerGitHub, Octoverse 2025
Repositories with Dependabot enabledMore than 2.668 million (up 24%)GitHub, Octoverse 2025
Repositories configuring Dependabot with dependabot.yml846,000 (up 137%)GitHub, Octoverse 2025
Dependabot fixes shipped in the month proposedAbout one in threeGitHub, Octoverse 2025
Top 50 open source projects using OpenSSF Scorecard47 (94%)GitHub, Octoverse 2025
Repositories flagged for Broken Access Control by CodeQLMore than 151,000 (up 172%), now the top alertGitHub, Octoverse 2025

The gap between "fix proposed" and "fix shipped" is the useful number: automated pull requests only help if they are merged. See the Dependency Update Automation Guide and the OpenSSF Scorecard Guide.

Licence and AI-related risk

  • Licence conflicts: 68% of OSSRA 2026 codebases had open source licence conflicts, up from 56%, the largest single-year rise the study has recorded; one codebase had 2,675 conflicts. See the Open Source Licence Compliance Guide.
  • AI coding assistants: about 85% of organisations in OSSRA 2026 used AI coding assistants, and 76% of those that prohibit them reported developers using them anyway. Only 54% evaluated AI-generated code for IP and licensing risk.
  • Open source AI models: 97% of OSSRA 2026 respondent organisations used open source AI models in development.

What the numbers mean for defenders

  • Measure age, not just CVEs: with 92% of codebases carrying components four or more years old, version lag predicts tomorrow's vulnerabilities. Track it alongside CVE counts and plan regular upgrade windows.
  • Find what manifests miss: the 17% of components outside package managers needs binary and snippet scanning, and SBOMs for third-party software.
  • Close the merge gap: only about one in three Dependabot fixes ships in the month proposed. Auto-merge low-risk patch updates with tests, and set service levels for critical fixes.
  • Block known-bad versions at intake: the Log4Shell figure shows that developers keep pulling vulnerable versions. A repository proxy that blocks versions with critical known vulnerabilities and known malicious packages stops the problem at source. See the Open Source Security Guide.
  • Assess project health before adoption: use OpenSSF Scorecard, maintainer count, release signing and disclosure policy as selection criteria, and fund or replace critical projects with one maintainer.

Using the numbers by organisation size

  • Small teams: the OSSRA and Sonatype figures still apply because the same registries and libraries are used. Free platform tooling (dependency alerts, automated update pull requests, Scorecard) closes most of the gap; the work is merging the fixes.
  • Mid-sized organisations: add a repository proxy, a software composition analysis tool across all repositories and a policy for maximum component age. The 92% outdated figure is the one to beat.
  • Large enterprises and software vendors: add SBOM production and exchange, binary analysis for vendored code, an open source programme office and, where you sell products with digital elements into the EU, obligations under the Cyber Resilience Act. See the EU Cyber Resilience Act Guide.

Questions the statistics should prompt

StatisticQuestion for your own estateEvidence to collect
87% of codebases with a vulnerability (OSSRA 2026)How many of our production applications have a known critical vulnerability in a component?SCA findings by application and severity, with age
92% with components four or more years old (OSSRA 2026)Which components are furthest behind, and why have they not been upgraded?Version lag report; upgrade blockers log
17% of components outside package managers (OSSRA 2026)Where do we copy or vendor code, and is it scanned?Binary and snippet scan results; SBOM completeness
42 million vulnerable Log4j downloads (Sonatype 2026)Can a developer still pull a version with a critical known vulnerability?Proxy block policy and blocked download logs
One in three Dependabot fixes shipped the same month (Octoverse 2025)How long do our automated fix pull requests stay open?Median open time of dependency update pull requests
60% of maintainers unpaid (Tidelift 2024)Which critical dependencies rely on one unpaid maintainer?Dependency health review with Scorecard results

Where identity fits

Many open source compromises are credential compromises: a maintainer's npm or PyPI publishing token, a CI bot's GitHub token or a contributor account that was never removed. Tidelift found two-factor authentication at only 68% among unpaid maintainers and secrets management at 39%. Consumers should prefer packages published with trusted publishing and provenance, and treat their own CI publishing tokens as privileged non-human identities. The Shai-Hulud npm Worm 2025 shows stolen publishing tokens spreading malware across packages. See the Open Source Maintainer Security Guide.

Framework mapping

Statistic areaNIST CSF 2.0NIST SP 800-53 Rev. 5MITRE ATT&CK
Vulnerable componentsID.RA-01 (vulnerabilities identified and recorded)RA-5 Vulnerability Monitoring and Scanning; SI-2 Flaw RemediationT1195.001 Compromise Software Dependencies and Development Tools
Outdated and abandoned componentsPR.PS-02 (software maintained, replaced and removed commensurate with risk)SA-22 Unsupported System ComponentsNot applicable
Component inventory and SBOMID.AM-02 (software inventories maintained)CM-8 System Component InventoryNot applicable
Maintainer and package compromiseGV.SC-07 (supplier risk understood and monitored)SR-11 Component Authenticity; SR-3 Supply Chain Controls and ProcessesT1195.002 Compromise Software Supply Chain

Common failure patterns when using open source statistics

  • Treating OSSRA as a random sample: its codebases come from audits, mostly in transactions. Describe it as "audited commercial codebases".
  • Mixing vulnerability and malware counts: a CVE in a legitimate library and a malicious package are different problems with different controls. Keep them in separate rows.
  • Quoting downloads as installations: registry download counts include CI rebuilds and mirrors, so 42 million vulnerable Log4j downloads is not 42 million vulnerable systems.
  • Comparing vendor figures across publishers: Black Duck, Sonatype and GitHub count different things. Compare a publisher with its own previous edition.
  • Reading GitHub fix times as industry fix times: Octoverse measures repositories on GitHub with alerts enabled, a population that already uses tooling.

Methodology notes and caveats

SourceWhat it measuresMain caveat
Black Duck 2026 OSSRA947 commercial codebases audited by Black Duck, 17 industries, plus a practitioner survey for supply chain and AI questionsVendor data; skewed to M&A audits; audit period not stated on the summary page
Sonatype 2026 State of the Software Supply ChainRegistry downloads, malicious packages and upgrade analysisVendor telemetry; downloads are not deployments
GitHub Octoverse 2025Activity on GitHub, 1 September 2024 to 31 August 2025Platform data; the report gives slightly different totals in different sections
Tidelift 2024 Maintainer ReportSurvey of 400+ maintainersSelf-selected sample; self-reported practices
Linux Foundation and Harvard Census III12 million+ library observations from SCA vendorsFindings published qualitatively in the release; dated December 2024

Metrics to track in your own programme

  • Critical open source vulnerabilities in production: count and age, with a fix service level.
  • Version lag: share of components more than two major versions or four years behind current.
  • SBOM coverage: share of production applications with a current SBOM, including third-party software.
  • Merge rate of automated fixes: share of dependency update pull requests merged within 30 days.
  • Blocked components at intake: monthly count of known-vulnerable or malicious versions blocked by the proxy.
  • Single-maintainer critical dependencies: number of critical components with one active maintainer.

Practitioner checklist

  • Cite every open source figure with publisher, report, edition and population, and label vendor research.
  • Keep vulnerability statistics and malicious package statistics separate.
  • Generate SBOMs for your software and request them for critical third-party software.
  • Scan binaries and vendored code, not only package manifests.
  • Route all package downloads through a proxy that blocks known-vulnerable and malicious versions.
  • Set service levels for critical open source fixes and auto-merge tested patch updates.
  • Score critical dependencies with OpenSSF Scorecard and review single-maintainer projects.
  • Use trusted publishing and short-lived tokens for your own package releases.
  • Validate AI-suggested dependency versions against the registry before merging.

Standards and references

Related NHI Mgmt Group resources: Software Supply Chain Security Guide · Top 10 Open Source Software Risks · Vulnerability and Exploitation Statistics Guide · Application Security Statistics Guide · Malicious Open Source Package Response Playbook

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 11 November 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org