Individual skill
template-injection
User input reaching a template compiler rather than its context: the source-versus-values distinction, double-render pipelines, template names chosen by the caller, why a template sandbox is a mitigation and not a boundary, minimizing what the render context exposes, and template-driven resource exhaustion. Use when rendering templates with user-influenced values, when a template string or template name is assembled from input, or when a product lets users author templates.
skills/template-injection/SKILL.md
Source commit eaba88102d91df65a9aa6397e8507c315c018f5e
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Instructions only
- Last checked
- Nov 6, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
Standard SKILL.md format has not been attested at this commit. No installation command is available; inspect the source.
Repository context
- Repository stars (not skill ratings)
- 23
- Repository last updated
- Aug 14, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- claude-skills Repository topic
- llm Repository topic
- security Repository topic
- skills Repository topic
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 8,779 bytesSKILL.mdcore · 8,779 bytesSKILL.mdcore · 8,779 bytesSKILL.mdcore · 8,779 bytesSKILL.mdcore · 8,779 bytesSKILL.mdcore · 8,779 bytesSKILL.mdcore · 8,779 bytesreferences/engines.mddoc · 7,782 bytesreferences/verifying-findings.mddoc · 3,579 bytesrules/template_injection.jsonasset · 2,434 bytestests/corpus.jsonasset · 1,965 bytes
Read excerpt
# Template Injection (SSTI)
## Rules (for AI agents)
### ALWAYS
- Pass user data as **bound values**, never into the template **source** string. This
is the whole skill in one line: `render(tmpl, {"name": name})` is safe,
`render("Hello " + name)` is SSTI. The compiler treats its source as code, and the
context as data — so the only question that matters about any user value is which of
the two it reaches.
- Keep the set of template sources **static and trusted**, loaded from files or
constants. A template body read from a database column, an API response, or a
request field is attacker-supplied code, whatever the column is called.
- Choose the template **by name from an allowlist**, never by a name the caller