Draft
fix: remediate 13 reachable security findings (cmdi, SSRF, LLM PII, DLP, secret, error-leak, CVE)#21
Conversation
Copilot
AI
changed the title
[WIP] Remediate selected batch of 13 units
fix: remediate 13 reachable security findings (cmdi, SSRF, LLM PII, DLP, secret, error-leak, CVE)
Jun 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses a batch of 13 production-reachable security findings across the handler layer spanning command injection, SSRF, LLM prompt injection, PII leakage, a committed secret, internal error exposure, and a vulnerable dependency.
Changes
cwe.go— OS command injectionDiagnosticPing: replacedexec.Command("sh", "-c", "ping -c 1 "+host)withAllowedHostnamevalidation +exec.Command("ping", "-c", "1", host)(fixed argv, no shell)ai.go— LLM prompt injection + error leakAIAnswer/AIAgentPlan: user-controlled input moved touserrole; system instructions stay insystemrole — eliminates direct concatenation of untrusted data into the system prompterr.Error()replaced with generic"invalid request"dlp.go— PII in logs and HTTP POSTSupportExport: SSN/DOB redacted inlog.Printf(***-**-XXXX/YYYY-**-**); raw PII fields removed from the outbound analytics POST payloadsecrets.go— committed GitHub PATghp_*constant;CloudTokensnow readsREACH_TESTBED_GITHUB_TOKENfrom the environment, returning HTTP 503 when unsetsuspicious.go— SSRF + cleartext + error leakFetchTool: rejects non-httpsschemes; validates hostname againstAllowedHostnameallowlist before making any outbound request; allerr.Error()calls replaced with generic messages + server-sidelog.Printfcve.go— error leakParseLanguage: returns"invalid language tag"instead oferr.Error()go.mod/go.sum— CVE dependencygolang.org/x/textv0.3.7→v0.3.8to resolve grouped CVEs