Search CWE weaknesses
cwe_search_weaknessesSearch CWE weaknesses by all text tokens, exact platform or consequence vocabulary, abstraction, status, mapping usage, view membership, a recorded taxonomy mapping (taxonomy name or entry ID such as CERT C ARR30-C), or a CVE that MITRE cites as an observed example. Text tokens match at word starts or camelCase humps; tokens of at least four Unicode letters also match after exactly one un or mis prefix at a word start (trusted finds untrusted), with possible spelling coincidences. An exact closed spelling also matches Unicode letter words joined by single ASCII hyphens (hardcoded finds hard-coded). Text never matches an entry ID or CVE. When replacing one platform filter with its platform-independent class adds matches, a notice gives that repeat. Omit filters to browse; categories and groupings are excluded. Each result carries MITRE’s mapping usage, which says whether the entry may be used to map a vulnerability, and, under a taxonomy or CVE filter, every mapping or observed example that matched. Results order by all tokens in the name or in one recorded alternate term such as XSS, then all in the description, then any other match, then numeric ID. Description previews contain the first sentence; use cwe_get_weakness for complete sections. Follow nextCursor for remaining matches.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cwe_search_weaknesses"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum page size; capped at 100 items with disclosure. | |
| cursor | No | Opaque continuation returned by this tool. | |
| filter | No | All whitespace-separated tokens must match the name, a recorded alternate term, the description, or the extended description, each at a word start or camelCase hump (dos finds ReDoS). Tokens of at least four Unicode letters also match after exactly one un or mis prefix at a word start (trusted finds untrusted); spelling coincidences can match. An exact closed spelling also matches Unicode letter words joined by single ASCII hyphens (hardcoded finds hard-coded). Blank means unset. | |
| status | No | Exact weakness status; discover with cwe_list_reference topic filter_values. A status only categories or groupings carry matches nothing. Omission includes all statuses, including Deprecated. | |
| viewId | No | CWE view ID such as CWE-1000 or 1000, from cwe_list_reference topic views; matches the weaknesses its recorded members reach within the view, or that its source filter selects for a filter-defined view. Blank means unset. | |
| language | No | Exact platform language name or class; discover with cwe_list_reference topic platforms. | |
| technology | No | Exact platform technology name or class; discover with cwe_list_reference topic platforms. | |
| abstraction | No | Exact CWE abstraction level; blank means unset. | |
| mappingUsage | No | Exact MITRE vulnerability mapping usage, such as Allowed or Allowed-with-Review; discover values with cwe_list_reference topic filter_values. | |
| taxonomyName | No | Exact taxonomy name a weakness mapping records, such as CERT C Secure Coding or ISA/IEC 62443; discover values with cwe_list_reference topic filter_values. Matches any mapping in that taxonomy, including one without an entry ID. | |
| observedCveId | No | CVE ID such as CVE-2021-44228, in any case; matches the weaknesses MITRE cites it on as an observed example, not other CVE-to-CWE assignments such as NVD’s. Blank means unset. | |
| taxonomyEntryId | No | Entry ID a weakness taxonomy mapping records, such as ARR30-C or A1, in any case and with any whitespace runs; matches only the whole recorded ID. With taxonomyName, both must hold on the same mapping. Blank means unset. | |
| consequenceImpact | No | Exact consequence impact; discover with cwe_list_reference topic filter_values. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | Effective page limit. | |
| error | No | Present when the call failed. Absent on success. | |
| shown | No | Items shown on this page. | |
| notice | No | Catalog caveats, independent platform repeats, empty-result or page-cap guidance. | |
| results | No | Matching weakness page. | |
| truncated | No | Whether a page omits remaining matches. | |
| pagination | No | Local result pagination. | |
| provenance | No | Loaded catalog provenance. | |
| totalCount | No | Complete matching count before paging. | |
| appliedFilters | No | Applied filters and defaults. |