huggingface-lora-space-builder

Fail

Audited by Snyk on Jul 3, 2026

Risk Level: HIGH
Full Analysis

HIGH W007: Insecure credential handling detected in skill instructions.

  • Insecure credential handling detected (high risk: 1.00). The prompt explicitly instructs the agent to ask the user to paste a Hugging Face access token into chat and to use that token for HfApi calls and publishing (and to add it as a Space secret), which requires the LLM to accept and handle a secret value and risks it being echoed or embedded in outputs.

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

  • Third-party content exposure detected (high risk: 0.75). The skill reads outsider-authored free text from the user-provided LoRA repo at runtime—specifically the model card README body (ModelCard.load(...).text) and example prompts/media—then injects that text into the agent’s LLM context to decide pipeline/UI/hyperparameters (indirect prompt injection risk).

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

Issues (3)

W007
HIGH

Insecure credential handling detected in skill instructions.

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
HIGH
Analyzed
Jul 3, 2026, 01:07 PM
Issues
3
Security Audit — snyk — huggingface-lora-space-builder