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.

Try it
Ready-made, maintained by usRecords, 11 fieldsv1.0

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

Cwe IDs
CWE numbers to fetch, such as 79 or CWE-89. Each one is one lookup. One per line, or separated by commas.
Example: 79, 89

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
Endpoint
POSThttps://pullrow.dev/v1/apis/cwe-weakness-catalog/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
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.

cwe_idslistrequired
CWE numbers to fetch, such as 79 or CWE-89. Each one is one lookup.
example: 79, 89

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

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 nameTypeShown on this page asFilled
cwe_idtextCwe ID (hidden)3 of 3
urllinkLink3 of 3
nametextName3 of 3
abstractiontextAbstraction3 of 3
statustextStatus3 of 3
descriptiontextDescription3 of 3
likelihood_of_exploittextLikelihood of exploit3 of 3
common_consequenceslistCommon consequences3 of 3
mitigationslistMitigations3 of 3
related_weaknesseslistRelated weaknesses3 of 3
observed_exampleslistObserved examples3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordNameAbstractionStatusDescriptionLikelihood of exploitCommon consequencesMitigationsRelated weaknessesObserved examplesLink
1Improper Neutralization of Input During Web Page GenerationBaseStableThe 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.HighScope: 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 DataArchitecture 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-113CVE-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
2Improper Neutralization of Special Elements used in an SQL CommandBaseStableThe 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…HighScope: 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 MechanismArchitecture 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-456CVE-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
3Out-of-bounds WriteBaseDraftThe product writes data past the end, or before the beginning, of the intended buffer.HighScope: Integrity; Impact: Modify Memory, Execute Unauthorized Code or Commands, Scope: Availability; Impact: DoS: Crash, Exit, or Restart, Scope: Other; Impact: Unexpected StateRequirements: 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-824CVE-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.
Known limits
  • 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.