What Is CWE? Map a Finding to the Right Weakness ID
Understand how CWE differs from CVE and CAPEC, how its ID levels work, and how to map a finding to a supported weakness.
What Is CWE? Map a Finding to the Right Weakness ID
Common Weakness Enumeration (CWE) is a public classification of recurring design, coding, and implementation weaknesses in software and hardware that may lead to vulnerabilities. Unlike CVE, which identifies a disclosed vulnerability in a specific product, CWE describes a root-cause type that can recur across products. To assign a CWE to a report or code review, match observed behavior to an entry instead of choosing an ID because its name sounds familiar.
This guide uses CWE List v5.0 and Schema 8.0, the latest as of November 23, 2026. CWE changes; record the version consumed by your tools, especially if they still use Schema 7.x. CWE 5.0 list, 2026 release notice
CWE, CVE, and CAPEC
A weakness is an underlying condition that can lead to vulnerabilities. A vulnerability is a specific exploitable instance in a product. CWE describes recurring weakness types; CVE identifies disclosed individual vulnerabilities. One CWE can underlie many CVE records across products. CAPEC describes common attack patterns used to exploit weaknesses. CWE asks what weakness exists; CAPEC explains how it may be exploited. These resources complement one another. CWE FAQ
| Scheme | Main question | Example |
|---|---|---|
| CWE | What recurring weakness type is present? | CWE-79: improper input handling during web page generation |
| CVE | What vulnerability affects a specific product? | An individual record tied to a product and version |
| CAPEC | What attack pattern exploits a weakness? | Manipulating input so a browser executes script |
CWE IDs represent different things
The CWE List contains individual Weaknesses, Groupings that collect entries, Views that organize them for a purpose, and Chains or Composites representing linked or combined weaknesses. With CWE 5.0 and Schema 8.0, the former term Category changed to Grouping. Older pages may retain the old term. Schema 8.0 changes, CWE terminology FAQ
Weaknesses have abstraction levels. A Pillar is broadest. A Class is a general type usually independent of language or technology. A Base is specific enough to suggest detection and prevention. A Variant reflects more specific technology, resource, or context. CWE-79 is a Base weakness involving input handling during web page generation; CWE-83 is a Variant involving script in page attributes. CWE-79, CWE-83
These levels are not a ranking where more abstract means more accurate. Choose the level supported by evidence. Do not overstate a narrow Variant if only general unsafe output is known; consider one when its context is confirmed.
Map an observed issue to a CWE ID
MITRE mapping guidance says to map to a Weakness or Chain/Composite, not to a View. The guidance uses the older term Category, renamed Grouping in CWE 5.0. A Grouping or View helps navigation; it is not a root-cause weakness ID. CWE mapping guidance, CWE 5.0 difference report
**Describe observed behavior in one sentence.** Example: user-controlled input enters an HTML attribute and a dangerous value is interpreted as code by the browser. Do not conclude from an attack name or scanner alert alone.
**Search CWE or browse a useful View.** Development Concepts View-699 may help development work; Research Concepts View-1000 can help explore broader relationships. A View finds candidates; it is not the final weakness ID.
**Read the entry and its evidence.** Check the description, affected technologies, examples, detection methods, mitigations, and parent/child relationships. Names alone can be ambiguous.
**Choose the most specific weakness that evidence supports.** Use a Class or Base if it describes the behavior; select a Variant only when its context is confirmed. Do not report a View or Grouping as a weakness.
**Record uncertainty.** Check whether an entry is deprecated in your version. If no suitable entry is clear, document the closest higher-level candidate and unknowns, or leave the mapping unresolved.
Example: do not assign a CWE from an XSS alert alone
This is a hypothetical example, not an analysis of a real product or CVE. If a reviewer sees an XSS alert, first trace where the data comes from and which web output uses it. User-controlled input placed into a page without adequate neutralization may fit CWE-79. If evidence confirms script in an event attribute such as onload, or a dangerous URI in an attribute, examine whether the narrower Variant CWE-83 fits. An alert that merely says XSS does not justify CWE-83. CWE-79, CWE-83
Limits and version management
CWE provides shared vocabulary and relationships, but cannot represent every defect, technical context, or root cause. One vulnerability may involve multiple weaknesses, and the right view may depend on the analysis. A CWE mapping is not an automatic severity score or proof a vulnerability exists; it classifies a cause supported by evidence. CWE FAQ, mapping guidance
CWE 5.0, released in October 2026, introduced Schema 8.0 and structural changes that may affect data consumers. MITRE also released CWE 4.21 with Schema 7.x-compatible content for existing integrations. If you maintain tools or pipelines that ingest CWE data, check new field names and Grouping terminology, and verify whether the data is v5.0/Schema 8.0 or v4.21/Schema 7.x. Release notice, difference report
For a new report or code review, check in this order: behavioral evidence → weakness description → abstraction level → data version. This keeps weakness classification distinct from product-specific vulnerability records, attack patterns, and severity decisions.
References
[MITRE About CWE](https://cwe.mitre.org/about/)
[CWE FAQ](https://cwe.mitre.org/about/faq)
[CWE Mapping Guidance](https://cwe.mitre.org/documents/cwe_usage/mapping_navigation.html)
[Current CWE 5.0 List](https://cwe.mitre.org/data/index.html)
[CWE 5.0 and Schema 8.0 news](https://cwe.mitre.org/news/archives/news2026.html)
[CWE-79](https://cwe.mitre.org/data/definitions/79.html) and [CWE-83](https://cwe.mitre.org/data/definitions/83.html)