CWE Weakness Catalog API
MITRE's software weakness catalog by CWE number: name, abstraction level, status, description, likelihood of exploit, common consequences, mitigations, related weaknesses and example CVEs, as short flat fields.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from cwe.mitre.org
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/cwe-weakness-catalog/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"cwe_ids":["79","89"]},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
11 fields: 10 here, 1 technical one under Technical details.
Basics
- Name
Name of the weakness.
Example Improper Neutralization of Input During Web Page Generation
- Abstraction
Level of detail: Pillar, Class, Base or Variant.
Example Base
- Status
Stable, Draft, Incomplete or Deprecated.
Example Stable
- Description
Short description in plain text, cut to 800 characters.
Example The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that…
- Likelihood of exploit
MITRE's rating: High, Medium or Low, when given.
Example High
- Common consequences
What can happen, each written like Scope: Confidentiality; Impact: Read Application Data.
Example Scope: Access Control, Confidentiality; Impact: Bypass Protection Mechanism, Read Application Data, Scope: Integrity, Confidentiality, Availability; Impact: Execute Unauthorized Code or Commands
- Mitigations
Ways to avoid or fix it, each starting with the phase, such as Implementation: ...
Example Architecture and Design: Use a vetted library or framework that does not allow this weakness to occur or provides…, Implementation, Architecture and Design: Understand the context in which your data will be used and the encoding that…
- Related weaknesses
Relations to other weaknesses, such as ChildOf CWE-74.
Example ChildOf CWE-74, CanPrecede CWE-494
- Observed examples
Real CVEs that show the weakness, each written CVE-2024-6847: short description.
Example CVE-2024-49038: XSS in AI assistant, CVE-2024-54142: Plugin that enables AI features allows input with html entities, leading to XSS
Links
- Link
Link to the weakness on cwe.mitre.org.
Technical detailsField names and types for developers, and the 1 field hidden above
Hidden by default
This field comes with each record too. It is an internal code, a note about how the record was read or a copy of what was searched for, so the lists above leave it out.
- Cwe ID
cwe_idThe weakness id, such as CWE-79.
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
cwe_id | text | Cwe ID (hidden) | 3 of 3 |
url | link | Link | 3 of 3 |
name | text | Name | 3 of 3 |
abstraction | text | Abstraction | 3 of 3 |
status | text | Status | 3 of 3 |
description | text | Description | 3 of 3 |
likelihood_of_exploit | text | Likelihood of exploit | 3 of 3 |
common_consequences | list | Common consequences | 3 of 3 |
mitigations | list | Mitigations | 3 of 3 |
related_weaknesses | list | Related weaknesses | 3 of 3 |
observed_examples | list | Observed examples | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Name | Abstraction | Status | Description | Likelihood of exploit | Common consequences | Mitigations | Related weaknesses | Observed examples | Link |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Improper Neutralization of Input During Web Page Generation | Base | Stable | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | High | Scope: Access Control, Confidentiality; Impact: Bypass Protection Mechanism, Read Application Data, Scope: Integrity, Confidentiality, Availability; Impact: Execute Unauthorized Code or Commands, Scope: Confidentiality, Integrity, Availability, Access Control; Impact: Execute Unauthorized Code or Commands, Bypass Protection Mechanism, Read Application Data | Architecture and Design: Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid [REF-1482]. Examples of libraries and frameworks that make it easier to generate properly encoded output include…, Implementation, Architecture and Design: Understand the context in which your data will be used and the encoding that will be expected. This is especially important when transmitting data between different components, or when generating outputs that can contain multiple…, Architecture and Design, Implementation: Understand all the potential areas where untrusted inputs can enter your software: parameters or arguments, cookies, anything read from the network, environment variables, reverse DNS lookups, query results, request headers, URL…, Architecture and Design: For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or… | ChildOf CWE-74, CanPrecede CWE-494, PeerOf CWE-352, CanFollow CWE-113 | CVE-2024-49038: XSS in AI assistant, CVE-2024-54142: Plugin that enables AI features allows input with html entities, leading to XSS, CVE-2021-25926: Python Library Manager did not sufficiently neutralize a user-supplied search term, allowing reflected XSS., CVE-2021-25963: Python-based e-commerce platform did not escape returned content on error pages, allowing for reflected Cross-Site Scripting attacks. | cwe.mitre.org/data/definitions/79.html |
| 2 | Improper Neutralization of Special Elements used in an SQL Command | Base | Stable | The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without… | High | Scope: Confidentiality, Integrity, Availability; Impact: Execute Unauthorized Code or Commands, Scope: Confidentiality; Impact: Read Application Data, Scope: Authentication; Impact: Gain Privileges or Assume Identity, Bypass Protection Mechanism, Scope: Access Control; Impact: Bypass Protection Mechanism | Architecture and Design: Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid [REF-1482]. For example, consider using persistence layers such as Hibernate or Enterprise Java Beans, which can…, Architecture and Design: If available, use structured mechanisms that automatically enforce the separation between data and code. These mechanisms may be able to provide the relevant quoting, encoding, and validation automatically, instead of relying on the developer to provide…, Architecture and Design, Operation: Run your code using the lowest privileges that are required to accomplish the necessary tasks [REF-76]. If possible, create isolated accounts with limited privileges that are only used for a single task. That way, a successful attack will not…, Architecture and Design: For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or… | ChildOf CWE-943, CanFollow CWE-456 | CVE-2024-6847: SQL injection in AI chatbot via a conversation message, CVE-2025-26794: SQL injection in e-mail agent through SQLite integration, CVE-2023-32530: SQL injection in security product dashboard using crafted certificate fields, CVE-2021-42258: SQL injection in time and billing software, as exploited in the wild per CISA KEV. | cwe.mitre.org/data/definitions/89.html |
| 3 | Out-of-bounds Write | Base | Draft | The product writes data past the end, or before the beginning, of the intended buffer. | High | Scope: Integrity; Impact: Modify Memory, Execute Unauthorized Code or Commands, Scope: Availability; Impact: DoS: Crash, Exit, or Restart, Scope: Other; Impact: Unexpected State | Requirements: Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, many languages that perform their own memory management, such as Java and Perl, are not subject to buffer overflows. Other…, Architecture and Design: Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. Examples include the Safe C String Library (SafeStr) by Messier and Viega [REF-57], and the Strsafe.h library…, Operation, Build and Compilation: Use automatic buffer overflow detection mechanisms that are offered by certain compilers or compiler extensions. Examples include: the Microsoft Visual Studio /GS flag, Fedora/Red Hat FORTIFY_SOURCE GCC flag, StackGuard, and ProPolice, which…, Implementation: Consider adhering to the following rules when allocating and managing an application's memory: - Double check that the buffer is as large as specified. - When using functions that accept a number of bytes to copy, such as strncpy(), be aware that if the… | ChildOf CWE-119, CanFollow CWE-822, CanFollow CWE-823, CanFollow CWE-824 | CVE-2026-7270: Chain: calculation expression does not use parentheses to address operator precedence (CWE-783), causing an incorrect calculation (CWE-682) leading to a buffer overflow (CWE-787)., CVE-2025-27363: Font rendering library does not properly handle assigning a signed short value to an unsigned long (CWE-195), leading to an integer wraparound (CWE-190), causing too small of a buffer (CWE-131), leading to an out-of-bounds write (CWE-787)., CVE-2023-1017: The reference implementation code for a Trusted Platform Module does not implement length checks on data, allowing for an attacker to write 2 bytes past the end of a buffer., CVE-2021-21220: Chain: insufficient input validation (CWE-20) in browser allows heap corruption (CWE-787), as exploited in the wild per CISA KEV. | cwe.mitre.org/data/definitions/787.html |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- You give the CWE numbers; there is no keyword search. Each number is one request, and a number that is not a weakness (a category or a view) or is unknown is skipped.
- One run reads at most 500 numbers. Write them as 79 or CWE-79.
- description is the short description, cut to 800 characters; the long extended description, demonstration code and detection methods are not included.
- common_consequences, mitigations, related_weaknesses and observed_examples are cut to 10 entries each, and each entry to 300 characters.
- likelihood_of_exploit is filled only for weaknesses where MITRE gives a rating.
- The catalog is updated by MITRE a few times a year; the API returns its current version.
- CWE content is free to use under the CWE Terms of Use: credit MITRE (cwe.mitre.org). Not affiliated with or endorsed by MITRE.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.