cargo-generate

Warn

Audited by Snyk on Jul 31, 2026

Risk Level: MEDIUM
Full Analysis

MEDIUM W011: Third-party content exposure detected (indirect prompt injection risk).

  • Third-party content exposure detected (medium risk: 0.30). The skill’s runtime workflow ingests outsider-authored free text via Git template repository file contents/path names (used for Liquid rendering and Rhai hooks) when the user supplies a remote --git <url> or local --path <dir> template to cargo generate.

MEDIUM W012: Unverifiable external dependency detected (runtime URL that controls agent).

  • Potentially malicious external URL detected (high risk: 0.90). The skill shows a runtime command that fetches a remote git template (which can contain cargo-generate.toml hooks that may run Rhai scripts and even system commands), e.g. https://github.com/TheBevyFlock/bevy_new_2d is fetched at runtime via --git and can therefore control prompts or execute code.

Issues (2)

W011
MEDIUM

Third-party content exposure detected (indirect prompt injection risk).

W012
MEDIUM

Unverifiable external dependency detected (runtime URL that controls agent).

Audit Metadata
Risk Level
MEDIUM
Analyzed
Jul 31, 2026, 02:25 AM
Issues
2
Security Audit — snyk — cargo-generate