CWE Top 25
| Full name | CWE Top 25 Most Dangerous Software Weaknesses |
|---|---|
| Published by | MITRE, with CISA |
| First edition | 2009 CWE/SANS Top 25 Most Dangerous Programming Errors |
| Current edition | 2025, released 11 December 2025 |
| Data | 39,080 CVE Records published 1 June 2024 to 1 June 2025 |
| Companion lists | Top 10 KEV Weaknesses, On the Cusp |
| Website | cwe.mitre.org/top25 |
The CWE Top 25 Most Dangerous Software Weaknesses is a yearly ranking of the weakness types that caused the most, and the most severe, publicly recorded vulnerabilities in a twelve-month window. MITRE, which maintains the Common Weakness Enumeration, computes it from the weakness assigned to each Common Vulnerabilities and Exposures Record, so the list measures which programming mistakes produced published flaws; a separate list ranks the weaknesses behind exploited ones.1 In the 2025 edition cross-site scripting came first with a score of 60.38, more than twice the score of SQL injection in second place.2
Score
A CVE Record can carry one or more weakness IDs, chosen by the CVE Numbering Authority (CNA) that published it, or added later by CISA's Vulnrichment project or by NVD analysts. For each weakness the formula counts its mappings and averages the Common Vulnerability Scoring System base score of the records it is mapped to. Both values are scaled between the lowest and highest seen in the data, then multiplied:1
Fr = (count(CWE) - min(count)) / (max(count) - min(count))
Sv = (avg_CVSS(CWE) - min(CVSS)) / (max(CVSS) - min(CVSS))
Score = Fr * Sv * 100A weakness that is common but usually low in impact, or severe but rare, scores low on one factor and so on the product; only one that is both common and severe reaches the top. Records without a CVSS 3.0 or 3.1 score are left out, because scores from different CVSS versions are calculated differently.1 The 2025 dataset held 39,080 records. Of these, 9,468 with vague mappings or mappings that disagreed with a keyword matcher went back to 281 CNAs for review, and 170 of them answered on 2,459 records. It was also the first edition in which an LLM tool suggested more precise mappings to the reviewers.1
The 2025 list
Missing authorization rose five places to fourth. The count of CVEs mapped to cross-site scripting grew by more than 3,000 over the year before, and SQL injection by almost 1,000, partly because more CVEs were published overall.3
Mapping decides the rank
Before 2025, every mapping was first rolled up into View-1003, a set of 130 weaknesses the National Vulnerability Database uses. A mapping outside that set was moved to its nearest ancestor inside it, or dropped if none existed. The 2025 edition counted mappings as published for the first time.1 Three kinds of buffer overflow (CWE-120, CWE-121 and CWE-122) and improper access control entered the list as a result. Several broader entries dropped out, among them CWE-119 and CWE-287, probably because their children's mappings were no longer added to them. Improper privilege management (CWE-269) had 219 CVEs of its own in 2025; with its children's mappings added back, as View-1003 would have done, it would have had 633 and likely stayed on the list.3
How one CNA maps can move the ranking. The largest producer in the 2025 data, with 1,884 records, often listed both a precise weakness and its parent; since every mapping counts, MITRE removed that CNA's parent mappings where a child was also present.1 Mapping has also become more precise: 67% of records in the 2025 data had a weakness supplied by the CNA, up from 53%, and mappings to entries marked Discouraged, ones too abstract to name a root cause, fell to 5.42% of the list's 28,336 mappings, from 10.19% in 2024.3
History
The first list, the 2009 CWE/SANS Top 25 Most Dangerous Programming Errors, began as a proposal by the SANS Institute and was drafted by MITRE in rounds of comments from a group that grew to 41 people from 35 organisations.4 The 2011 edition was ranked from surveys and interviews with developers, analysts, researchers and vendors. In 2019 MITRE switched to the data method, using about 25,000 CVEs from 2017 and 2018. That change brought broad class-level entries onto the list, such as improper input validation, and put the memory-buffer class CWE-119 first with a score of 75.56.5
Top 10 KEV Weaknesses
A companion list applies the same formula only to records in the Known Exploited Vulnerabilities catalog catalog: 182 CVEs from the same twelve months. With so few records one CVE can change a rank below tenth place, so it stops at ten.6 The order differs sharply. OS command injection leads with 20 exploited CVEs, and cross-site scripting is tenth.7 Cross-site request forgery, third in the main list, has no CVE in KEV at all.2
Biases in the data
MITRE set out the biases of its method with the 2019 edition. Only flaws that receive a CVE are counted, and CVEs rarely cover bugs fixed before release, flaws in online services, or software used inside one organisation, so the weaknesses behind such flaws may be under-represented. Vendors who publish many CVEs shape the data with their languages: a large contributor writing C raises the share of C weaknesses, and Fuzzing finds memory errors in volume. The formula also favours implementation flaws over design flaws, because one web application can have many cross-site scripting bugs but a single weak choice of encryption.5
Use
CISA, which sponsors the CWE programme, released the 2025 list with MITRE and ties it to its Secure by Design and Secure by Demand programmes. It asks developers to review it for high-priority weaknesses, security teams to cover it in testing, and buyers to use it as a benchmark when they assess vendors.8
In SecFlash
SecFlash issue codes carry a CWE where one fits, and these fall on the 2025 list: SF-SEC-710 (HTML output not escaped, CWE-79), SF-SEC-704 (SQL built from strings, CWE-89), SF-SEC-611 (form without anti-CSRF token, CWE-352) and SF-SEC-725 (paid or private route with no login check, CWE-306) on the Security page; SF-CLD-501 (public table without row level security, CWE-862) on the Cloud page; and SF-EXP-501 (one account can read another account's data, CWE-639) on the Exposure page.
See also
- Common Weakness Enumeration
- Common Vulnerabilities and Exposures
- Common Vulnerability Scoring System
- Known Exploited Vulnerabilities catalog
- National Vulnerability Database
- OWASP Top 10
- Category: Testing and standards
References
- a b c d e f MITRE (2026). "2025 CWE Top 25: Methodology". Common Weakness Enumeration.
- a b c MITRE (2025). "2025 CWE Top 25 Most Dangerous Software Weaknesses". Common Weakness Enumeration.
- a b c MITRE (2025). 2025 CWE Top 25: analysis of rank changes and mapping. Common Weakness Enumeration.
- back MITRE. "2009 CWE/SANS Top 25: Process". Common Weakness Enumeration.
- a b MITRE (2019). "2019 CWE Top 25 Most Dangerous Software Errors". Common Weakness Enumeration.
- back MITRE (2026). "CWE Top 10 KEV Weaknesses List Methodology". Common Weakness Enumeration.
- back MITRE (2026). "2025 CWE Top 10 KEV Weaknesses". Common Weakness Enumeration.
- back CISA (11 December 2025). "2025 CWE Top 25 Most Dangerous Software Weaknesses". Cybersecurity advisory bulletin.