Conformance Check Failure
Check ID: SEC-004
Severity: MEDIUM
Category: Security
Problem Description
Three handler files contain body fields (used for HTTP request/response bodies) but do not reference any of the required sanitization functions (sanitize, stripHTML, escapeMarkdown, cleanContent). The Safe Outputs specification requires that any handler processing body/content fields must apply sanitization before producing output to prevent content injection.
Affected Components
Current vs Expected Behavior
Current Behavior
Each file uses body as a variable name for HTTP POST request/response payloads, but none reference sanitization helpers such as sanitize, stripHTML, escapeMarkdown, or cleanContent. The conformance check (SEC-004) flags any file that has a body field without a corresponding sanitization call.
Expected Behavior
Per the Safe Outputs specification, handlers that process body/content fields must apply content sanitization before forwarding that content as output to GitHub (issues, comments, PRs, etc.). If a file only uses body for internal HTTP transport (not for producing safe outputs), it should either:
- Add a
@safe-outputs-exempt SEC-004 annotation with justification, or
- Apply sanitization to any content that flows into safe-output tool calls.
Remediation Steps
This task can be assigned to a Copilot coding agent with the following steps:
- Review each file to determine if the
body field is used to produce any safe output (GitHub issue body, comment, PR description, etc.) or is purely an internal HTTP transport variable.
- If used for safe output: Add a call to the appropriate sanitization utility (e.g.,
sanitize(), escapeMarkdown()) before passing content to safe-output handlers.
- If purely internal transport: Add a
// @safe-outputs-exempt SEC-004: body is HTTP transport only, not safe-output content annotation near the body usage so the conformance check can skip the file.
- Re-run the conformance checker to confirm SEC-004 passes for all three files.
Verification
After remediation, verify the fix by running:
bash scripts/check-safe-outputs-conformance.sh
The check SEC-004 should pass without any MEDIUM findings.
References
- Safe Outputs Specification:
docs/src/content/docs/reference/safe-outputs-specification.md
- Conformance Checker:
scripts/check-safe-outputs-conformance.sh
- Run ID: §24536310861
- Date: 2026-04-16
Generated by Daily Safe Outputs Conformance Checker · ● 66.2K · ◷
Conformance Check Failure
Check ID: SEC-004
Severity: MEDIUM
Category: Security
Problem Description
Three handler files contain
bodyfields (used for HTTP request/response bodies) but do not reference any of the required sanitization functions (sanitize,stripHTML,escapeMarkdown,cleanContent). The Safe Outputs specification requires that any handler processing body/content fields must apply sanitization before producing output to prevent content injection.Affected Components
actions/setup/js/mcp_cli_bridge.cjsactions/setup/js/mount_mcp_as_cli.cjsactions/setup/js/start_mcp_gateway.cjsCurrent vs Expected Behavior
Current Behavior
Each file uses
bodyas a variable name for HTTP POST request/response payloads, but none reference sanitization helpers such assanitize,stripHTML,escapeMarkdown, orcleanContent. The conformance check (SEC-004) flags any file that has abodyfield without a corresponding sanitization call.Expected Behavior
Per the Safe Outputs specification, handlers that process body/content fields must apply content sanitization before forwarding that content as output to GitHub (issues, comments, PRs, etc.). If a file only uses
bodyfor internal HTTP transport (not for producing safe outputs), it should either:@safe-outputs-exempt SEC-004annotation with justification, orRemediation Steps
This task can be assigned to a Copilot coding agent with the following steps:
bodyfield is used to produce any safe output (GitHub issue body, comment, PR description, etc.) or is purely an internal HTTP transport variable.sanitize(),escapeMarkdown()) before passing content to safe-output handlers.//@safe-outputs-exemptSEC-004: body is HTTP transport only, not safe-output contentannotation near thebodyusage so the conformance check can skip the file.Verification
After remediation, verify the fix by running:
The check
SEC-004should pass without any MEDIUM findings.References
docs/src/content/docs/reference/safe-outputs-specification.mdscripts/check-safe-outputs-conformance.sh