Get CWE
get_cweLook up a CWE by identifier to get its description, exploitation likelihood, consequences, mitigations, related CWEs, and associated CVEs.
Instructions
Look up a CWE by identifier (e.g. CWE-79): weakness name, description, abstraction, MITRE likelihood_of_exploit, common consequences, detection methods, phased mitigations, related CWEs, the corpus threats that carry it, and related_cves - the corpus CVEs mapping to this weakness (top 20 by KEV then CVSS, with related_cve_count giving the true total; use search_vulnerabilities with cwe= for the full list). NOTE: CWE has no CVSS severity - likelihood_of_exploit is the ontology's own High/Medium/Low rating, and severity_note says so; for scored severity read the related_cves rows or call get_cve. related_cves is null (never []) if the join could not run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwe_id | Yes | CWE identifier (e.g. CWE-79) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| cwe_id | Yes | ||
| enriched | No | False when not found — then only cwe_id is present. | |
| threat_ids | No | ||
| abstraction | No | ||
| description | No | ||
| mitigations | No | ||
| related_cves | No | Corpus CVEs mapping to this CWE (top 20, KEV then CVSS). NULL means the join could not run — it never means "none exist"; [] does. | |
| related_cwes | No | ||
| severity_note | No | ||
| detection_methods | No | ||
| related_cve_count | No | True total mapping to this CWE, which can exceed the 20 returned. | |
| related_cves_note | No | ||
| common_consequences | No | ||
| likelihood_of_exploit | No | MITRE's High/Medium/Low rating. CWE has NO CVSS severity — see severity_note. |