weakness
Pack: mitre-cwe · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/weakness for the schema, then POST the same URL with its arguments for the data.
“What is CWE-[N]” / “look up CWE [name]” / “details on [weakness]” / “explain XSS / SQL injection / buffer overflow” / “what kind of security flaw is [X]” — fetch a single MITRE CWE (Common Weakness Enumeration) record with description, examples, mitigations, related attacks, references. Use for security analysis, vulnerability triage, threat-modeling, secure-coding training. Example IDs: 79 (XSS), 89 (SQL injection), 787 (out-of-bounds write).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | CWE id (e.g. “79” or “CWE-79”) |
view | string | no | Optional view id to retrieve view-specific info. |
Example call
Arguments
{
"id": "79"
}
curl
curl -X POST https://gateway.pipeworx.io/mitre-cwe/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"weakness","arguments":{"id":"79"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('weakness', {
"id": "79"
});
More examples
{
"id": "CWE-89",
"view": "1003"
}
Response shape
| Field | Type | Description |
|---|---|---|
Weaknesses | array |
Full JSON Schema
{
"type": "object",
"properties": {
"Weaknesses": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ID": {
"type": "string"
},
"Name": {
"type": "string"
},
"Abstraction": {
"type": "string"
},
"Structure": {
"type": "string"
},
"Status": {
"type": "string"
},
"Diagram": {
"type": "string"
},
"Description": {
"type": "string"
},
"ExtendedDescription": {
"type": "string"
},
"LikelihoodOfExploit": {
"type": "string"
},
"RelatedWeaknesses": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Nature": {
"type": "string"
},
"CweID": {
"type": "string"
},
"ViewID": {
"type": "string"
},
"Ordinal": {
"type": "string"
}
}
}
},
"WeaknessOrdinalities": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Ordinality": {
"type": "string"
}
}
}
},
"ApplicablePlatforms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Type": {
"type": "string"
},
"Class": {
"type": "string"
},
"Prevalence": {
"type": "string"
},
"Name": {
"type": "string"
}
}
}
},
"BackgroundDetails": {
"type": "array",
"items": {
"type": "string"
}
},
"AlternateTerms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Term": {
"type": "string"
},
"Description": {
"type": "string"
}
}
}
},
"ModesOfIntroduction": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Phase": {
"type": "string"
},
"Note": {
"type": "string"
}
}
}
},
"CommonConsequences": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Scope": {
"type": "array",
"items": {
"type": "string"
}
},
"Impact": {
"type": "array",
"items": {
"type": "string"
}
},
"Note": {
"type": "string"
}
}
}
},
"DetectionMethods": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Method": {
"type": "string"
},
"Description": {
"type": "string"
},
"Effectiveness": {
"type": "string"
},
"EffectivenessNotes": {
"type": "string"
},
"DetectionMethodID": {
"type": "string"
}
}
}
},
"PotentialMitigations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"MitigationID": {
"type": "string"
},
"Phase": {
"type": "array",
"items": {
"type": "string"
}
},
"Strategy": {
"type": "string"
},
"Description": {
"type": "string"
},
"Effectiveness": {
"type": "string"
},
"EffectivenessNotes": {
"type": "string"
}
}
}
},
"DemonstrativeExamples": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Entries": {
"type": "array",
"items": {
"type": "object",
"properties": {
"IntroText": {
"type": "string"
},
"Nature": {
"type": "string"
},
"Language": {
"type": "string"
},
"ExampleCode": {
"type": "string"
},
"BodyText": {
"type": "string"
}
}
}
},
"ID": {
"type": "string"
}
}
}
},
"ObservedExamples": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Reference": {
"type": "string"
},
"Description": {
"type": "string"
},
"Link": {
"type": "string"
}
}
}
},
"TaxonomyMappings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"TaxonomyName": {
"type": "string"
},
"EntryName": {
"type": "string"
},
"EntryID": {
"type": "string"
},
"MappingFit": {
"type": "string"
}
}
}
},
"RelatedAttackPatterns": {
"type": "array",
"items": {
"type": "string"
}
},
"References": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ExternalReferenceID": {
"type": "string"
},
"Authors": {
"type": "array",
"items": {
"type": "string"
}
},
"Title": {
"type": "string"
},
"PublicationYear": {
"type": "string"
},
"Publisher": {
"type": "string"
},
"Section": {
"type": "string"
},
"Publication": {
"type": "string"
},
"PublicationMonth": {
"type": "string"
},
"PublicationDay": {
"type": "string"
},
"URL": {
"type": "string"
},
"URLDate": {
"type": "string"
},
"Edition": {
"type": "string"
}
}
}
},
"MappingNotes": {
"type": "object",
"properties": {
"Usage": {
"type": "string"
},
"Rationale": {
"type": "string"
},
"Comments": {
"type": "string"
},
"Reasons": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"Notes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Type": {
"type": "string"
},
"Note": {
"type": "string"
}
}
}
},
"ContentHistory": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Type": {
"type": "string"
},
"SubmissionName": {
"type": "string"
},
"SubmissionDate": {
"type": "string"
},
"SubmissionVersion": {
"type": "string"
},
"SubmissionReleaseDate": {
"type": "string"
},
"ModificationName": {
"type": "string"
},
"ModificationOrganization": {
"type": "string"
},
"ModificationDate": {
"type": "string"
},
"ModificationComment": {
"type": "string"
},
"ModificationVersion": {
"type": "string"
},
"ModificationReleaseDate": {
"type": "string"
}
}
}
}
}
}
}
},
"description": "CWE weakness record from MITRE CWE API"
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the mitre-cwe pack
{
"mcpServers": {
"mitre-cwe": {
"url": "https://gateway.pipeworx.io/mitre-cwe/mcp"
}
}
}
See Getting Started for client-specific install steps.