Back to skill

Security audit

Mustache

Security checks for vulnerabilities and agentic risk

Overview

This is a small Mustache.js reference skill; it is coherent, but its HTML examples should be used only with trusted or sanitized data.

Install this as a Mustache.js reference skill if you want templating help, but avoid copying the raw HTML, global escape override, or innerHTML examples into web-facing code unless the template and data are trusted or sanitized. Prefer escaped variables by default and keep npm installs project-local unless you specifically need the CLI globally.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (3)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The trigger list includes broad phrases like 'when the user asks to render templates' and 'generate HTML/config/code from templates,' which can overlap with many ordinary coding requests unrelated to Mustache specifically. The description also mixes multiple conditions without clear boundaries or exclusion cases, making unintended invocation more likely.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The documentation explicitly presents unescaped output via triple braces and {{&key}} as raw HTML without warning that rendering untrusted data this way can lead to XSS or HTML injection. In a templating skill, this is contextually more dangerous because users are likely to copy these patterns directly into web-facing code.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
99% confidence
Finding

The example assigns Mustache-rendered output directly to innerHTML, which can create a DOM XSS sink if the template or data includes attacker-controlled HTML, especially when combined with unescaped Mustache tags or disabled escaping. Because this skill teaches templating for HTML generation, the absence of a warning materially increases the chance of insecure copy-paste into production code.

Content

No source excerpt is available for this finding.