Short answer
The Common Weakness Enumeration (CWE) is a community-built catalogue of the types of mistakes that cause vulnerabilities, each with an ID such as CWE-89 (SQL injection) or CWE-862 (Missing Authorization). It is run by MITRE and sponsored by CISA. A CWE names a kind of flaw, not a specific bug in a specific product; that is what a CVE is. Security reports use CWE IDs so you can look up what a finding means.
Ask an AI about this page:ChatGPTClaude
On this page
The Common Weakness Enumeration (CWE) is a community-developed catalogue of the types of flaws in software and hardware that can lead to vulnerabilities. Each type has a number and a page that explains it, for example CWE-862: Missing Authorization (opens in a new tab): the product does not check whether the caller may access a resource or perform an action. MITRE operates CWE, and CISA, part of the US Department of Homeland Security, sponsors it.
CWE separates two ideas. A weakness is a mistake in how something is built. A vulnerability is what results when that weakness can actually be exploited in a real product. That makes CWE the vocabulary for causes, while a CVE names one concrete case.
CWE in an AI-built app
You will see CWE IDs in security reports, including ShipRely’s, next to each finding. The ones that come up most for Lovable, Bolt or Cursor apps with Supabase:
| CWE | Name | Typical form in an AI-built app |
|---|---|---|
| CWE-862 | Missing Authorization | A table without row level security, an admin function anyone can call |
| CWE-639 | Authorization Bypass Through User-Controlled Key | Loading a record by ID without an owner check (IDOR) |
| CWE-79 | Cross-site Scripting | User content rendered with dangerouslySetInnerHTML |
| CWE-89 | SQL Injection | A database function that builds SQL with string concatenation |
| CWE-352 | Cross-Site Request Forgery | A cookie-based endpoint that accepts requests from other sites |
| CWE-918 | Server-Side Request Forgery | An edge function that fetches any URL a user sends |
Each CWE page explains the weakness, shows examples and lists ways to prevent it. Some broad entries, such as CWE-285 Improper Authorization (opens in a new tab), are marked as discouraged for mapping real findings; the site points to more precise children like CWE-862 and CWE-863.
How to use CWE IDs
- To understand a finding: open the CWE page from the report. The description and examples usually make clear why the tool flagged the code.
- To group your work: five findings with the same CWE often share one root cause, such as a missing policy pattern, and one fix.
- To prioritise: the CWE team publishes a CWE Top 25 (opens in a new tab) of the most dangerous weaknesses. All six CWEs in the table above are in the 2025 edition, with cross-site scripting, SQL injection, CSRF and Missing Authorization in the first four places. The OWASP Top 10 works one level higher: each of its categories maps to a list of CWEs.
A CWE tells you what kind of mistake it is, not how severe a particular case is. For that, look at the finding’s severity or, for published vulnerabilities, the CVSS score. How to read a security report explains how these fit together.
Frequently asked questions
What is the difference between CWE and CVE?
A CWE is a category of mistake, like ‘missing authorization’. A CVE is one concrete vulnerability in one product, like a specific bug in a specific library version. A CVE record often names the CWE behind it.
What is the CWE Top 25?
A ranking, published by the CWE team, of the most dangerous software weaknesses. In the 2025 edition, cross-site scripting (CWE-79) is first, SQL injection (CWE-89) second, cross-site request forgery (CWE-352) third and Missing Authorization (CWE-862) fourth.
Why are some CWEs marked ‘discouraged’ for mapping?
Broad entries such as CWE-285 Improper Authorization are too general to describe a real finding. The CWE site points to more specific children instead, such as CWE-862 Missing Authorization or CWE-863 Incorrect Authorization.
Sources
- 1.About CWE — MITRE
- 2.2025 CWE Top 25 Most Dangerous Software Weaknesses — MITRE
- 3.CWE-862: Missing Authorization — MITRE
- 4.CWE-285: Improper Authorization — MITRE