{"api":{"id":"api_5aced2ba7a53ca6e6e24dedb","slug":"cwe-weakness-catalog","name":"CWE Weakness Catalog API","description":"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.","kind":"ready_made","visibility":"public","domain":"cwe-api.mitre.org","source_url":"https://cwe.mitre.org/","category":"developer","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":11,"created_at":"2026-12-06T03:57:27.630Z","updated_at":"2026-12-06T03:57:27.630Z","runnable":true,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","fields":[{"name":"cwe_id","type":"string","description":"The weakness id, such as CWE-79.","required":true,"coverage":1,"example":"CWE-79"},{"name":"url","type":"url","description":"Link to the weakness on cwe.mitre.org.","required":false,"coverage":1,"example":"https://cwe.mitre.org/data/definitions/79.html"},{"name":"name","type":"string","description":"Name of the weakness.","required":false,"coverage":1,"example":"Improper Neutralization of Input During Web Page Generation"},{"name":"abstraction","type":"string","description":"Level of detail: Pillar, Class, Base or Variant.","required":false,"coverage":1,"example":"Base"},{"name":"status","type":"string","description":"Stable, Draft, Incomplete or Deprecated.","required":false,"coverage":1,"example":"Stable"},{"name":"description","type":"string","description":"Short description in plain text, cut to 800 characters.","required":false,"coverage":1,"example":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that…"},{"name":"likelihood_of_exploit","type":"string","description":"MITRE's rating: High, Medium or Low, when given.","required":false,"coverage":1,"example":"High"},{"name":"common_consequences","type":"array","description":"What can happen, each written like Scope: Confidentiality; Impact: Read Application Data.","required":false,"coverage":1,"example":["Scope: Access Control, Confidentiality; Impact: Bypass Protection Mechanism, Read Application Data","Scope: Integrity, Confidentiality, Availability; Impact: Execute Unauthorized Code or Commands"]},{"name":"mitigations","type":"array","description":"Ways to avoid or fix it, each starting with the phase, such as Implementation: ...","required":false,"coverage":1,"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…"]},{"name":"related_weaknesses","type":"array","description":"Relations to other weaknesses, such as ChildOf CWE-74.","required":false,"coverage":1,"example":["ChildOf CWE-74","CanPrecede CWE-494"]},{"name":"observed_examples","type":"array","description":"Real CVEs that show the weakness, each written CVE-2024-6847: short description.","required":false,"coverage":1,"example":["CVE-2024-49038: XSS in AI assistant","CVE-2024-54142: Plugin that enables AI features allows input with html entities, leading to XSS"]}],"inputs":[{"name":"cwe_ids","type":"array","description":"CWE numbers to fetch, such as 79 or CWE-89. Each one is one lookup.","example":["79","89"],"required":true}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"abstraction":{"description":"Level of detail: Pillar, Class, Base or Variant.","type":"string"},"common_consequences":{"description":"What can happen, each written like Scope: Confidentiality; Impact: Read Application Data.","type":"array"},"cwe_id":{"description":"The weakness id, such as CWE-79.","type":"string"},"description":{"description":"Short description in plain text, cut to 800 characters.","type":"string"},"likelihood_of_exploit":{"description":"MITRE's rating: High, Medium or Low, when given.","type":"string"},"mitigations":{"description":"Ways to avoid or fix it, each starting with the phase, such as Implementation: ...","type":"array"},"name":{"description":"Name of the weakness.","type":"string"},"observed_examples":{"description":"Real CVEs that show the weakness, each written CVE-2024-6847: short description.","type":"array"},"related_weaknesses":{"description":"Relations to other weaknesses, such as ChildOf CWE-74.","type":"array"},"status":{"description":"Stable, Draft, Incomplete or Deprecated.","type":"string"},"url":{"description":"Link to the weakness on cwe.mitre.org.","format":"uri","type":"string"}},"required":["cwe_id"],"title":"CWE Weakness Catalog API","type":"object"},"samples":[{"cwe_id":"CWE-79","url":"https://cwe.mitre.org/data/definitions/79.html","name":"Improper Neutralization of Input During Web Page Generation","abstraction":"Base","status":"Stable","description":"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.","likelihood_of_exploit":"High","common_consequences":["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"],"mitigations":["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…"],"related_weaknesses":["ChildOf CWE-74","CanPrecede CWE-494","PeerOf CWE-352","CanFollow CWE-113"],"observed_examples":["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_id":"CWE-89","url":"https://cwe.mitre.org/data/definitions/89.html","name":"Improper Neutralization of Special Elements used in an SQL Command","abstraction":"Base","status":"Stable","description":"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…","likelihood_of_exploit":"High","common_consequences":["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"],"mitigations":["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…"],"related_weaknesses":["ChildOf CWE-943","CanFollow CWE-456"],"observed_examples":["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_id":"CWE-787","url":"https://cwe.mitre.org/data/definitions/787.html","name":"Out-of-bounds Write","abstraction":"Base","status":"Draft","description":"The product writes data past the end, or before the beginning, of the intended buffer.","likelihood_of_exploit":"High","common_consequences":["Scope: Integrity; Impact: Modify Memory, Execute Unauthorized Code or Commands","Scope: Availability; Impact: DoS: Crash, Exit, or Restart","Scope: Other; Impact: Unexpected State"],"mitigations":["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…"],"related_weaknesses":["ChildOf CWE-119","CanFollow CWE-822","CanFollow CWE-823","CanFollow CWE-824"],"observed_examples":["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."]}],"validation":{"checked_at":"2026-12-06T03:57:27.599Z","field_coverage":{"abstraction":1,"common_consequences":1,"cwe_id":1,"description":1,"likelihood_of_exploit":1,"mitigations":1,"name":1,"observed_examples":1,"related_weaknesses":1,"status":1,"url":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"links":{"run":"https://pullrow.dev/v1/apis/api_5aced2ba7a53ca6e6e24dedb/run","openapi":"https://pullrow.dev/v1/apis/api_5aced2ba7a53ca6e6e24dedb/openapi.json","contract":"https://pullrow.dev/v1/apis/api_5aced2ba7a53ca6e6e24dedb/contract.json","page":"https://pullrow.dev/catalog/cwe-weakness-catalog"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":0.5,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["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."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"cwe_id","label":"Cwe ID","description":"The weakness id, such as CWE-79.","group":"Technical","shown":false,"written":false},{"name":"url","label":"Link","description":"Link to the weakness on cwe.mitre.org.","group":"Links","shown":true,"written":false},{"name":"name","label":"Name","description":"Name of the weakness.","group":"Basics","shown":true,"written":false},{"name":"abstraction","label":"Abstraction","description":"Level of detail: Pillar, Class, Base or Variant.","group":"Basics","shown":true,"written":false},{"name":"status","label":"Status","description":"Stable, Draft, Incomplete or Deprecated.","group":"Basics","shown":true,"written":false},{"name":"description","label":"Description","description":"Short description in plain text, cut to 800 characters.","group":"Basics","shown":true,"written":false},{"name":"likelihood_of_exploit","label":"Likelihood of exploit","description":"MITRE's rating: High, Medium or Low, when given.","group":"Basics","shown":true,"written":false},{"name":"common_consequences","label":"Common consequences","description":"What can happen, each written like Scope: Confidentiality; Impact: Read Application Data.","group":"Basics","shown":true,"written":false},{"name":"mitigations","label":"Mitigations","description":"Ways to avoid or fix it, each starting with the phase, such as Implementation: ...","group":"Basics","shown":true,"written":false},{"name":"related_weaknesses","label":"Related weaknesses","description":"Relations to other weaknesses, such as ChildOf CWE-74.","group":"Basics","shown":true,"written":false},{"name":"observed_examples","label":"Observed examples","description":"Real CVEs that show the weakness, each written CVE-2024-6847: short description.","group":"Basics","shown":true,"written":false}],"inputs":[{"name":"cwe_ids","label":"Cwe IDs","help":"CWE numbers to fetch, such as 79 or CWE-89. Each one is one lookup.","example":"79, 89","written":false}]}},"incidents":[]}