Raw scan report

Documcp — the complete, unedited output of the deterministic mcptrustchecker engine v1.13.0, scanned . Every finding, capability tag and score component below is exactly what the engine produced — no AI, no post-processing.

← Back to the scan page
{
  "tool": {
    "name": "mcptrustchecker",
    "version": "1.13.0",
    "methodologyVersion": "mcptrustchecker-1.13"
  },
  "target": {
    "id": "documcp",
    "source": {
      "kind": "package",
      "origin": "documcp"
    },
    "server": {
      "name": "documcp"
    }
  },
  "grade": "D",
  "score": {
    "score": 69,
    "threatScore": 75,
    "grade": "D",
    "band": "D",
    "categorySubtotals": {
      "injection": 24.85,
      "exfiltration": 0,
      "permissions": 0,
      "supply-chain": 0,
      "network": 0,
      "hygiene": 0
    },
    "vector": [
      {
        "kind": "threat",
        "ruleId": "MTC-SRC-009",
        "category": "injection",
        "severity": "medium",
        "confidence": "strong",
        "rawWeight": 9,
        "confidenceMult": 0.7,
        "diminishingFactor": 1,
        "appliedPenalty": 6.3
      },
      {
        "kind": "threat",
        "ruleId": "MTC-SRC-009",
        "category": "injection",
        "severity": "medium",
        "confidence": "strong",
        "rawWeight": 9,
        "confidenceMult": 0.7,
        "diminishingFactor": 0.5,
        "appliedPenalty": 3.15
      },
      {
        "kind": "threat",
        "ruleId": "MTC-SRC-011",
        "category": "injection",
        "severity": "high",
        "confidence": "strong",
        "rawWeight": 22,
        "confidenceMult": 0.7,
        "diminishingFactor": 1,
        "appliedPenalty": 15.4
      },
      {
        "kind": "client",
        "term": "capability-exposure",
        "level": "high",
        "label": "capability blast radius (high) — client exposure if the model is manipulated",
        "appliedPenalty": 6
      },
      {
        "kind": "client",
        "term": "verification-discount",
        "level": "source",
        "label": "publisher verification (provenance) — cryptographic build provenance ties the artifact to its source",
        "appliedPenalty": 0
      },
      {
        "kind": "client",
        "term": "coverage-honesty",
        "level": "source",
        "label": "inspection depth (source) — how much of the target the scan could see",
        "appliedPenalty": 0
      }
    ],
    "gatesFired": [],
    "methodologyVersion": "mcptrustchecker-1.13"
  },
  "capability": {
    "level": "high",
    "reasons": [
      "reads sensitive or local data",
      "has a read → egress path (a data-exfiltration surface)",
      "can execute shell commands or code"
    ],
    "tags": [
      "sensitive-source",
      "code-exec"
    ]
  },
  "coverage": {
    "level": "source",
    "inputs": {
      "toolSurface": true,
      "implementationSource": true,
      "packageMetadata": true,
      "liveTransport": false
    },
    "caveats": [
      "Tools were statically extracted from the published source (98 recovered), not enumerated from a running server. Tool-poisoning, Unicode-smuggling, capability and toxic-flow analysis ran on this inferred surface, but a mis-parsed registration could be missed or mis-attributed, so tool-derived findings are capped below “confirmed”. To grade the real runtime surface, scan the running server: --command \"npx -y <package>\"."
    ]
  },
  "findings": [
    {
      "ruleId": "MTC-SRC-010",
      "title": "Dynamic evaluation of a non-literal value (dist/tools/validate-content.js)",
      "category": "injection",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/tools/validate-content.js:688`): Evaluating a runtime value as code (rather than a fixed literal) executes whatever reaches it — a direct RCE primitive, and almost never necessary in legitimate code. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
      "remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
      "location": {
        "kind": "server",
        "name": "dist/tools/validate-content.js"
      },
      "evidence": "ing Node.js new Function(code); validation.compilationSuccess = true; validation.con",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-010",
        "file": "dist/tools/validate-content.js",
        "line": 688,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-010",
      "title": "Dynamic evaluation of a non-literal value (src/tools/validate-content.ts)",
      "category": "injection",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`src/tools/validate-content.ts:955`): Evaluating a runtime value as code (rather than a fixed literal) executes whatever reaches it — a direct RCE primitive, and almost never necessary in legitimate code. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
      "remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
      "location": {
        "kind": "server",
        "name": "src/tools/validate-content.ts"
      },
      "evidence": "eck using Node.js new Function(code); validation.compilationSuccess = true; validation.confidence = 75",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-010",
        "file": "src/tools/validate-content.ts",
        "line": 955,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-011",
      "title": "Assembled command execution and dynamic evaluation in the same server",
      "category": "injection",
      "severity": "high",
      "confidence": "strong",
      "description": "The implementation both builds shell commands out of runtime values (`dist/utils/sitemap-generator.js`) and evaluates runtime values as code (`dist/tools/validate-content.js`). Each is a separate arbitrary-execution primitive; a server exposing both gives anything that reaches either one a direct path to running attacker-chosen code. These two sinks are in different files — confirm whether they are actually connected, or are unrelated code paths (e.g. a vendored bundle plus a CLI wrapper).",
      "remediation": "Remove the dynamic eval, and pass command arguments as an argv array instead of building a shell string. If both are genuinely required, constrain and validate every value that can reach them.",
      "location": {
        "kind": "server",
        "name": "implementation"
      },
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rules": [
          "MTC-SRC-009",
          "MTC-SRC-010"
        ],
        "commandFile": "dist/utils/sitemap-generator.js",
        "evalFile": "dist/tools/validate-content.js",
        "sameFile": false
      }
    },
    {
      "ruleId": "MTC-SRC-001",
      "title": "Dynamic code execution in server code (dist/tools/validate-content.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/tools/validate-content.js:688`): Evaluating strings as code is the most direct RCE primitive; if any tool input reaches it, the server executes attacker-chosen code. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
      "remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
      "location": {
        "kind": "server",
        "name": "dist/tools/validate-content.js"
      },
      "evidence": "ing Node.js new Function(code); validation.compilationSuccess = true; validation.con",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-001",
        "file": "dist/tools/validate-content.js",
        "line": 688,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-001",
      "title": "Dynamic code execution in server code (src/tools/validate-content.ts)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`src/tools/validate-content.ts:955`): Evaluating strings as code is the most direct RCE primitive; if any tool input reaches it, the server executes attacker-chosen code. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
      "remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
      "location": {
        "kind": "server",
        "name": "src/tools/validate-content.ts"
      },
      "evidence": "eck using Node.js new Function(code); validation.compilationSuccess = true; validation.confidence = 75",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-001",
        "file": "src/tools/validate-content.ts",
        "line": 955,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (dist/tools/test-local-deployment.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/tools/test-local-deployment.js:4`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
      "remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
      "location": {
        "kind": "server",
        "name": "dist/tools/test-local-deployment.js"
      },
      "evidence": "t { spawn, exec } from \"child_process\"; import { promisify } from \"util\"; import { formatMCPResponse } from \"../types/ap",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/tools/test-local-deployment.js",
        "line": 4,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (dist/tools/validate-content.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/tools/validate-content.js:3`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
      "remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
      "location": {
        "kind": "server",
        "name": "dist/tools/validate-content.js"
      },
      "evidence": "; import { exec } from \"child_process\"; import { promisify } from \"util\"; import { handleMemoryRecall } from \"../memory/",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/tools/validate-content.js",
        "line": 3,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (dist/utils/language-parsers-simple.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/utils/language-parsers-simple.js:1`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
      "remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
      "location": {
        "kind": "server",
        "name": "dist/utils/language-parsers-simple.js"
      },
      "evidence": "import { spawn } from \"child_process\"; export class MultiLanguageCodeScanner { parsers = new Map(); constructor",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/utils/language-parsers-simple.js",
        "line": 1,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (dist/utils/sitemap-generator.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/utils/sitemap-generator.js:9`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
      "remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
      "location": {
        "kind": "server",
        "name": "dist/utils/sitemap-generator.js"
      },
      "evidence": "port { execSync } from \"child_process\"; /** * Default include patterns for common documentation formats */ const DEFAU",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/utils/sitemap-generator.js",
        "line": 9,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (src/tools/test-local-deployment.ts)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`src/tools/test-local-deployment.ts:4`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
      "remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
      "location": {
        "kind": "server",
        "name": "src/tools/test-local-deployment.ts"
      },
      "evidence": "t { spawn, exec } from \"child_process\"; import { promisify } from \"util\"; import { MCPToolResponse, formatMCPResponse }",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "src/tools/test-local-deployment.ts",
        "line": 4,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (src/tools/validate-content.ts)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`src/tools/validate-content.ts:4`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
      "remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
      "location": {
        "kind": "server",
        "name": "src/tools/validate-content.ts"
      },
      "evidence": "; import { exec } from \"child_process\"; import { promisify } from \"util\"; import { handleMemoryRecall } from \"../memory/",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "src/tools/validate-content.ts",
        "line": 4,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-009",
      "title": "Untrusted input concatenated into a command sink (dist/utils/sitemap-generator.js)",
      "category": "injection",
      "severity": "medium",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/utils/sitemap-generator.js:231`): A shell/process command assembled from concatenated or interpolated values is command injection when any part is attacker-influenced — the OWASP canonical RCE flow. Verify what reaches the interpolated value. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
      "remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
      "location": {
        "kind": "server",
        "name": "dist/utils/sitemap-generator.js"
      },
      "evidence": "const timestamp = execSync(`git log -1 --format=%cI \"${filePath}\"`, { encoding: \"utf-8\", s",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-009",
        "file": "dist/utils/sitemap-generator.js",
        "line": 231,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-009",
      "title": "Untrusted input concatenated into a command sink (src/utils/sitemap-generator.ts)",
      "category": "injection",
      "severity": "medium",
      "confidence": "strong",
      "description": "In the server's implementation (`src/utils/sitemap-generator.ts:342`): A shell/process command assembled from concatenated or interpolated values is command injection when any part is attacker-influenced — the OWASP canonical RCE flow. Verify what reaches the interpolated value. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
      "remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
      "location": {
        "kind": "server",
        "name": "src/utils/sitemap-generator.ts"
      },
      "evidence": "{ const timestamp = execSync(`git log -1 --format=%cI \"${filePath}\"`, { encoding: \"utf-8\", stdio: [\"pipe",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-009",
        "file": "src/utils/sitemap-generator.ts",
        "line": 342,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-003",
      "title": "Hardcoded egress to an external endpoint in packaging/dev tooling (dist/scripts/collect-release-health.js)",
      "category": "exfiltration",
      "severity": "low",
      "confidence": "heuristic",
      "description": "In a packaging/dev/install script (shipped, but not the server runtime) (`dist/scripts/collect-release-health.js:123`): A hardcoded outbound call to a fixed external host inside server code is a classic exfiltration/telemetry channel — especially paired with reads of local data. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
      "remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
      "location": {
        "kind": "server",
        "name": "dist/scripts/collect-release-health.js"
      },
      "evidence": "const response = await fetch(\"https://api.npmjs.org/downloads/point/last-week/documcp\"); const weekData = (awai",
      "owasp": "LLM02:2025 Sensitive Information Disclosure",
      "data": {
        "rule": "MTC-SRC-003",
        "file": "dist/scripts/collect-release-health.js",
        "line": 123,
        "nonRuntime": true
      }
    },
    {
      "ruleId": "MTC-SRC-003",
      "title": "Hardcoded egress to an external endpoint in packaging/dev tooling (src/scripts/collect-release-health.ts)",
      "category": "exfiltration",
      "severity": "low",
      "confidence": "heuristic",
      "description": "In a packaging/dev/install script (shipped, but not the server runtime) (`src/scripts/collect-release-health.ts:181`): A hardcoded outbound call to a fixed external host inside server code is a classic exfiltration/telemetry channel — especially paired with reads of local data. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
      "remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
      "location": {
        "kind": "server",
        "name": "src/scripts/collect-release-health.ts"
      },
      "evidence": "const response = await fetch( \"https://api.npmjs.org/downloads/point/last-week/documcp\" ); const weekData",
      "owasp": "LLM02:2025 Sensitive Information Disclosure",
      "data": {
        "rule": "MTC-SRC-003",
        "file": "src/scripts/collect-release-health.ts",
        "line": 181,
        "nonRuntime": true
      }
    },
    {
      "ruleId": "MTC-CAP-008",
      "title": "Unconstrained path parameter \"path\" on \"read_directory\"",
      "category": "permissions",
      "severity": "low",
      "confidence": "heuristic",
      "description": "Tool \"read_directory\" takes a path parameter \"path\" with no constraint. Without a canonicalize-and-contain check (not visible statically), this permits ../ traversal outside the intended root.",
      "remediation": "Resolve and verify the path stays within an allowed root; reject traversal sequences.",
      "location": {
        "kind": "tool",
        "name": "read_directory",
        "field": "inputSchema.properties.path"
      },
      "data": {
        "param": "path"
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in packaging/dev tooling (dist/scripts/collect-release-health.js)",
      "category": "permissions",
      "severity": "low",
      "confidence": "heuristic",
      "description": "In a packaging/dev/install script (shipped, but not the server runtime) (`dist/scripts/collect-release-health.js:6`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
      "remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
      "location": {
        "kind": "server",
        "name": "dist/scripts/collect-release-health.js"
      },
      "evidence": "port { execSync } from \"child_process\"; import * as fs from \"fs\"; import * as path from \"path\"; /** * Execute shell com",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/scripts/collect-release-health.js",
        "line": 6,
        "nonRuntime": true
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in packaging/dev tooling (dist/scripts/generate-release-notes.js)",
      "category": "permissions",
      "severity": "low",
      "confidence": "heuristic",
      "description": "In a packaging/dev/install script (shipped, but not the server runtime) (`dist/scripts/generate-release-notes.js:18`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
      "remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
      "location": {
        "kind": "server",
        "name": "dist/scripts/generate-release-notes.js"
      },
      "evidence": "port { execSync } from \"child_process\"; import * as fs from \"fs\"; import * as path from \"path\"; const COMMIT_TYPES = {",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/scripts/generate-release-notes.js",
        "line": 18,
        "nonRuntime": true
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in packaging/dev tooling (src/scripts/collect-release-health.ts)",
      "category": "permissions",
      "severity": "low",
      "confidence": "heuristic",
      "description": "In a packaging/dev/install script (shipped, but not the server runtime) (`src/scripts/collect-release-health.ts:7`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
      "remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
      "location": {
        "kind": "server",
        "name": "src/scripts/collect-release-health.ts"
      },
      "evidence": "port { execSync } from \"child_process\"; import * as fs from \"fs\"; import * as path from \"path\"; interface ReleaseMetric",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "src/scripts/collect-release-health.ts",
        "line": 7,
        "nonRuntime": true
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in packaging/dev tooling (src/scripts/generate-release-notes.ts)",
      "category": "permissions",
      "severity": "low",
      "confidence": "heuristic",
      "description": "In a packaging/dev/install script (shipped, but not the server runtime) (`src/scripts/generate-release-notes.ts:19`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
      "remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
      "location": {
        "kind": "server",
        "name": "src/scripts/generate-release-notes.ts"
      },
      "evidence": "port { execSync } from \"child_process\"; import * as fs from \"fs\"; import * as path from \"path\"; interface ConventionalC",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "src/scripts/generate-release-notes.ts",
        "line": 19,
        "nonRuntime": true
      }
    }
  ],
  "toxicFlows": [],
  "capabilities": [
    {
      "tool": "documcp",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "analyze_repository",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "recommend_ssg",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "generate_config",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "setup_structure",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "setup_playwright_tests",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "deploy_site",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "deploy_pages",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "verify_deployment",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "populate_diataxis_content",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "update_existing_documentation",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "validate_diataxis_content",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "validate_content",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "detect_documentation_gaps",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "test_local_deployment",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "evaluate_readme_health",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "readme_best_practices",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "check_documentation_links",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "generate_readme_template",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "validate_readme_checklist",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "analyze_readme",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "optimize_readme",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "manage_preferences",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "analyze_deployments",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "read_directory",
      "tags": [
        "sensitive-source"
      ],
      "reasons": {
        "sensitive-source": [
          "keyword \"list_files\""
        ]
      }
    },
    {
      "tool": "sync_code_to_docs",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "record_drift_outcome",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "generate_contextual_content",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "track_documentation_freshness",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "validate_documentation_freshness",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "manage_sitemap",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "generate_llm_context",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "cleanup_agent_artifacts",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_community_insights",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "tutorial-writer",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "project_path",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "target_audience",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "learning_goal",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "howto-guide-writer",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "problem",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "user_experience",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "reference-writer",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "reference_type",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "completeness",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "explanation-writer",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "concept",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "depth",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "diataxis-organizer",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "current_docs",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "priority",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "readme-optimizer",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "optimization_focus",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "analyze-and-recommend",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "analysis_depth",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "preferences",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "setup-documentation",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "ssg_type",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "include_examples",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "troubleshoot-deployment",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "repository",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "deployment_url",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "issue_description",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "maintain-documentation-freshness",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "docs_path",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "freshness_preset",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "action",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "code-mode-documentation-setup",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "ssg_preference",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "include_deployment",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "code-mode-parallel-workflow",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "operations",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "code-mode-efficient-analysis",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "include_recommendations",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Available Static Site Generators",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Jekyll Configuration Template",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Hugo Configuration Template",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Docusaurus Configuration Template",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "MkDocs Configuration Template",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Eleventy Configuration Template",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Diataxis Structure Template",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "All Documentation Workflows",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Quick Documentation Setup Workflow",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Full Documentation Setup Workflow",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Workflow Execution Guidance",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Documentation Freshness Presets",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Freshness Metadata Schema",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Community Insights",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Jekyll",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Hugo",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Docusaurus",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "MkDocs",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Eleventy",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Realtime",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Active",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Recent",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Weekly",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Monthly",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Quarterly",
      "tags": [],
      "reasons": {}
    }
  ],
  "surfaceDigest": "21118c16ed6de807f42b110244cb400babde2113343d65101814004d8bb593ce",
  "stats": {
    "tools": 98,
    "prompts": 0,
    "resources": 0,
    "findingsBySeverity": {
      "critical": 0,
      "high": 11,
      "medium": 2,
      "low": 7,
      "info": 0
    }
  }
}