CWE is a common language for talking about security defects: not a specific vulnerability in a specific version, but a class of mistake — for example, SQL injection or a buffer overflow. Knowing the weaknesses, developers fix them before release, when it is easier and cheaper. The list is maintained by MITRE with support from the American agency CISA; the first release came out in 2006.
How the list is organised
Each weakness is a record with an identifier such as CWE-79 and its own description. A record includes:
- name and description of the flaw — what exactly the developer did or failed to do;
- typical consequences — from reading someone else’s data to executing arbitrary code;
- platforms and languages where the weakness occurs;
- prevention and detection — which checks, libraries and settings reduce the risk.
A few well-known records:
| Identifier | Weakness |
|---|---|
| CWE-79 | cross-site scripting (XSS) |
| CWE-89 | SQL injection |
| CWE-78 | OS command injection |
| CWE-22 | path traversal |
| CWE-287 | improper authentication |
In all, the list contains 956 records (as of November 2026), and they differ in their level of abstraction: the most general ones, called pillars, set the theme — for example, CWE-284 “improper access control” — with classes, base weaknesses and concrete variants tied to languages and technologies below them. There are also views — sets of records assembled for a particular task: for software development, for hardware design and for research.
CWE and CVE
CVE describes a specific case: this version of this product has a vulnerability, and the vulnerability has been given a number. CWE answers the question of what the weakness is in general terms: according to MITRE, a single CWE record is often the root cause of many CVE records. The NVD database historically tags CVE records with CWE codes, and these tags are used to look for vulnerabilities of the same kind. Static analysis tools (SAST) also check their findings against CWE records: a finding such as “an unescaped variable ends up in an SQL query” is labelled CWE-89.
CWE Top 25
Every year MITRE publishes the CWE Top 25 — the most common and most dangerous weaknesses of the year, recalculated from CVE data. The ranking shows where real systems stumble most often: in 2025 first place went to XSS (CWE-79), followed by SQL injection (CWE-89); the list is based on an analysis of 39,080 CVE records. The ranking is a reference point for developers and organisations: which weaknesses most often lead to vulnerabilities, and where to direct training and protective measures.
Sources
the term is written from these pagesVerified 9 Nov