wp-email-templates

Warn

Audited by Gen Agent Trust Hub on Aug 22, 2026

Risk Level: MEDIUMREMOTE_CODE_EXECUTIONPROMPT_INJECTION
Full Analysis
  • [DYNAMIC_EXECUTION]: The render_template helper function in SKILL.md uses the include statement to load PHP files from a path computed at runtime ($dir . $template . '.php'). Similarly, the My_Plugin_Email class in references/html-email-patterns.md uses file_get_contents on a provided path. This dynamic loading from computed paths is a security risk if the path or template name is not strictly validated against a whitelist.
  • [INDIRECT_PROMPT_INJECTION]: The skill facilitates the ingestion of external data via the $vars array, which is then interpolated into HTML email templates. While the skill recommends escaping output (e.g., using esc_html), the use of extract(EXTR_SKIP) and dynamic template rendering creates an attack surface for indirect injection.
  • Ingestion points: The $vars parameter in render_email and render_template functions within SKILL.md.
  • Boundary markers: Absent in the render_template wrapper, although standard WordPress escaping functions are used within individual template files.
  • Capability inventory: File system access via include (SKILL.md) and file_get_contents (references/html-email-patterns.md).
  • Sanitization: The skill correctly instructs developers to use WordPress escaping functions like esc_html() and esc_url() for variable output.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Aug 22, 2026, 09:07 AM