huggingface-gradio
Pass
Audited by Gen Agent Trust Hub on Sep 15, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- Dynamic Component Execution: The
gr.HTMLcomponent documentation and examples inSKILL.mddescribe the use ofjs_on_load,html_template, andcss_template. - Pattern: This allows for the injection of arbitrary JavaScript and CSS into the rendered UI.
- Context: While a standard extensibility feature of Gradio for creating custom components, it allows for the execution of code in the user's browser context.
- External Resource Reference: The
StarRatingexample inSKILL.mdfetches a decorative image from a remote source. - Evidence:
https://upload.wikimedia.org/wikipedia/commons/d/df/Award-star-gold-3d.svg(Wikimedia Commons). - Context: This is a reference to a well-known, trusted media repository for UI assets.
- Network Interaction via CLI: The
SKILL.mdfile documents thegradio infoandgradio predictCLI commands. - Pattern: These commands are designed to interact with remote Gradio Spaces and endpoints to discover parameters and send prediction data.
- Context: This is standard functionality for programmatically interacting with Gradio applications.
- Indirect Prompt Injection Surface: As a UI-building toolset, the skill provides numerous components for ingesting untrusted data.
- Ingestion points: Untrusted data enters the context through
gr.Textbox,gr.File,gr.Audio,gr.Image, andgr.Chatbotcomponents across bothSKILL.mdandexamples.md. - Boundary markers: Generic examples do not typically include explicit boundary markers or "ignore" instructions for the data they process.
- Capability inventory: The skill facilitates wiring these inputs to arbitrary Python functions, and the
gradioCLI provides network interaction capabilities. - Sanitization: Components like
gr.Chatbotandgr.Markdownincludesanitize_html=Trueby default to mitigate typical web-based injection attacks.
Audit Metadata