Skip to content

docs: interpreter-aware injection guidance - #9

Merged
jhheider merged 1 commit into
mainfrom
docs/interpreter-aware-injection
Jul 21, 2026
Merged

docs: interpreter-aware injection guidance#9
jhheider merged 1 commit into
mainfrom
docs/interpreter-aware-injection

Conversation

@jhheider

Copy link
Copy Markdown
Owner

Folds into unreleased 0.2.0. The injection-remediation advice ("use $name, the shell quotes it") was sh-only, but mdtask already runs python/ruby/node fences. Restated: raw {{ arg }} is unsafe in any language; the safe form is read-from-environment ("$name", os.environ["name"], ...). Updates the Args doc, MCP module doc + refusal message, and script_arg_templates. Doc/comment-only; gate green.

🤖 Generated with Claude Code

mdtask already runs python/ruby/node fences, where there is no shell doing the
quoting, so the old "use $name, the shell quotes it" advice was sh-only. Restate
it correctly: raw {{ arg }} is unsafe in any language; the safe form is to read
the value from the environment ("$name" in a shell, os.environ["name"] in Python,
process.env.name in Node). Applies to the Args doc, the MCP module doc, the
agent-refusal message, and script_arg_templates.
@jhheider
jhheider merged commit 1484914 into main Jul 21, 2026
6 checks passed
@jhheider
jhheider deleted the docs/interpreter-aware-injection branch July 21, 2026 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant