{"id":25883108,"url":"https://github.com/o-x-l/cve-statistics","last_synced_at":"2026-06-08T03:31:05.128Z","repository":{"id":245564975,"uuid":"818628154","full_name":"O-X-L/cve-statistics","owner":"O-X-L","description":"Script to generate CVE Statistics","archived":false,"fork":false,"pushed_at":"2024-12-08T19:00:26.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T16:38:35.454Z","etag":null,"topics":["cve","security","security-audit","statistics","vulnerabilities","vulnerability"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/O-X-L.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-22T11:35:11.000Z","updated_at":"2024-12-08T19:00:29.000Z","dependencies_parsed_at":"2024-06-22T20:31:28.425Z","dependency_job_id":"b73e8e9b-e2da-45b4-a933-58d394a3048a","html_url":"https://github.com/O-X-L/cve-statistics","commit_stats":null,"previous_names":["o-x-l/cve-statistics"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/O-X-L/cve-statistics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/O-X-L%2Fcve-statistics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/O-X-L%2Fcve-statistics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/O-X-L%2Fcve-statistics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/O-X-L%2Fcve-statistics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/O-X-L","download_url":"https://codeload.github.com/O-X-L/cve-statistics/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/O-X-L%2Fcve-statistics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34047266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cve","security","security-audit","statistics","vulnerabilities","vulnerability"],"created_at":"2025-03-02T16:31:13.968Z","updated_at":"2026-06-08T03:31:05.091Z","avatar_url":"https://github.com/O-X-L.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CVE Statistics Extractor\n\nThis is a basic script to extract statistics about CVE's.\n\nCVE's are used to report and rate vulnerabilities.\n\n----\n\n## Usage\n\n1. Download the CVE data in JSON format: [cve.org](https://www.cve.org/Downloads), [Archive](https://github.com/CVEProject/cvelistV5/archive/refs/heads/main.zip)\n2. Extract the data to the same directory as the script (`cvelistV5-main` should be on the same level)\n3. Run the script: `python3 cve_statistics.py`\n4. Use the JSON export: `cve_statistics.json`\n\n----\n\n## Example\n\nSee: [example.json](https://github.com/O-X-L/cve-statistics/blob/main/example.json) (*after enabling SHRINK*)\n\n```bash\npython3 cve_statistics.py\n\u003e ...\n\u003e 2015 | Published: 147 | Scored: 147 | Severity: {'low': 65, 'med': 79, 'high': 2, 'crit': 0, 'dis': 1} | %-Scored: 100.0 | Avg score: 4.9\n\u003e 2016 | Published: 205 | Scored: 202 | Severity: {'low': 50, 'med': 82, 'high': 58, 'crit': 1, 'dis': 11} | %-Scored: 98.54 | Avg score: 6.26\n\u003e 2017 | Published: 1027 | Scored: 1022 | Severity: {'low': 189, 'med': 364, 'high': 399, 'crit': 18, 'dis': 52} | %-Scored: 99.51 | Avg score: 6.79\n\u003e 2018 | Published: 1597 | Scored: 1589 | Severity: {'low': 283, 'med': 761, 'high': 429, 'crit': 51, 'dis': 65} | %-Scored: 99.5 | Avg score: 6.54\n\u003e 2019 | Published: 2636 | Scored: 2552 | Severity: {'low': 456, 'med': 1219, 'high': 717, 'crit': 50, 'dis': 110} | %-Scored: 96.81 | Avg score: 6.56\n\u003e 2020 | Published: 5794 | Scored: 5307 | Severity: {'low': 1046, 'med': 2223, 'high': 1481, 'crit': 186, 'dis': 371} | %-Scored: 91.59 | Avg score: 6.65\n\u003e 2021 | Published: 9341 | Scored: 8202 | Severity: {'low': 1654, 'med': 3098, 'high': 2741, 'crit': 268, 'dis': 442} | %-Scored: 87.81 | Avg score: 6.66\n\u003e 2022 | Published: 11181 | Scored: 9454 | Severity: {'low': 1926, 'med': 3984, 'high': 2688, 'crit': 338, 'dis': 518} | %-Scored: 84.55 | Avg score: 6.55\n\u003e 2023 | Published: 17279 | Scored: 13886 | Severity: {'low': 2669, 'med': 6861, 'high': 3101, 'crit': 399, 'dis': 860} | %-Scored: 80.36 | Avg score: 6.48\n\u003e 2024 | Published: 9631 | Scored: 8422 | Severity: {'low': 1593, 'med': 4564, 'high': 1644, 'crit': 236, 'dis': 385} | %-Scored: 87.45 | Avg score: 6.4\n```\n\nNote: Some CVE's are filtered\n\n* CVE's that are not of the state `PUBLISHED`\n* CVE's without a score\n\nIf you need a small export for some charts - set `SHRINK = True`! Size difference: `1.2MB =\u003e 4KB`\n\n----\n\n## Customize\n\nIf you want to customize the script, you should look into the [CVE data schema](https://cveproject.github.io/cve-schema/schema/docs/).\n\nCommon use-cases could be to search/filter for vulnerabilities of a single product (*MS Windows, MS Exchange, ...*)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fo-x-l%2Fcve-statistics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fo-x-l%2Fcve-statistics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fo-x-l%2Fcve-statistics/lists"}