Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 5 min read Announcement easyNovice

A Security Review of Gradio 5

Trail of Bits audited Gradio ahead of the 5.0 release, and every finding was fixed and validated before launch. Issues spanned four scenarios. Locally run apps had CORS misconfigurations enabling token theft. Deployed apps had a full-read SSRF, XSS via arbitrary file uploads, a traffic-rerouting race condition and arbitrary file leaks. Share links had root RCE through an exposed Docker API behind nginx and unencrypted frp tunnels. The CI pipeline pinned GitHub Actions to tags instead of commit SHAs. Gradio has since added security unit tests, fuzzing and Semgrep in CI to prevent regressions.

Assumes: web security basicsCORS

Related posts

  • 4M Models Scanned: Protect AI + Hugging Face 6 Months In

    Hugging Face easyNovice

    Six months into the Hugging Face partnership, Protect AI's Guardian has scanned 4.47 million model versions across 1.41 million Hub repositories and flagged 352,000 unsafe or suspicious issues in 51,700 models. It serves 226 million requests a month at about 8 ms response time. Four new detection modules cover archive slip, Joblib code execution, TensorFlow SavedModel architectural backdoors and malicious llamafiles. Recurring attack themes are library-dependent call chains (e.g. torchvision.io file overwrites), payloads hidden through compression and nested archives, framework-extensibility exploits such as Keras CVE-2025-1550, and chained attack vectors, all handled under a zero-trust stance that treats any arbitrary code execution as suspicious.

  • Coding Agent Horror Stories: The 29 Million Secret Problem

    Docker mediumAdept

    The s1ngularity supply-chain attack on the Nx npm package used a post-install script to find installed AI coding CLIs (Claude Code, Gemini CLI, Amazon Q) and invoke them with permission-bypass flags like --dangerously-skip-permissions, prompting the agent to inventory secrets across the home directory before exfiltrating them to public repos under the victim's GitHub account. GitGuardian counted 2,349 stolen secrets across 1,079 repos and also found AI-assisted code leaks secrets at about twice the GitHub baseline. Docker Sandboxes is pitched as the mitigation: agents run in microVMs that see only the project workspace, and credentials stay in the host keychain and are injected by a proxy at the network boundary, so the agent only ever holds a placeholder.

  • Our response to the TanStack npm supply chain attack

    OpenAI easyNovice

    Two OpenAI employee devices were compromised via the malicious TanStack npm package in the Mini Shai-Hulud supply chain attack, leading to credential-focused exfiltration from a limited set of internal repositories that held code-signing certificates for iOS, macOS and Windows apps. OpenAI isolated systems, revoked sessions, rotated credentials, blocked new notarizations with the old certificate, and is rotating signing certificates, which requires macOS users to update apps before the revocation deadline (extended to June 26, 2026). The affected devices had not yet received hardening controls rolled out after the Axios incident, including package manager minimumReleaseAge settings and provenance validation, which would have blocked the malicious package. No customer data, IP or signed malware was found.

  • Defending Your Software Supply Chain: What Every Engineering Team Should Do Now

    Docker mediumAdept

    Recent supply chain compromises (the axios npm hijack attributed to Lazarus Group, the TeamPCP campaign via Trivy's GitHub Action, Shai-Hulud, GlassWorm) share one root cause: implicit trust in mutable tags, broad long-lived tokens and unsandboxed runners. The recommended defenses start with pinning Actions to commit SHAs and images to digests, using lock files with npm ci, and applying 3-day cooldowns on new dependency versions, since most malicious releases live only hours. Further layers are short-lived scoped CI credentials, avoiding pull_request_target, artifact proxies and build-time SBOMs, plus canary tokens and credential cleanup on developer machines. AI coding agents should run in microVM sandboxes and MCP servers should be governed. Many recommendations are paired with Docker products such as Hardened Images, Scout, Sandboxes and MCP Gateway.

  • MCP Horror Stories: The GitHub Prompt Injection Data Heist

    Docker mediumAdept

    A prompt injection planted in a public GitHub issue can hijack an AI agent using the official GitHub MCP server. When a developer asks it to "check the open issues," the agent uses a broad personal access token to read private repositories and leak salary and project data into a public pull request, as Invariant Labs demonstrated in May 2025. Docker's mitigation runs tools through the Docker MCP Gateway with interceptors, which are exec, container or HTTP hooks that inspect each tool call before and after it runs. A cross-repo-blocker script locks each session to the first repository accessed and blocks calls to any other repository. A Docker Compose setup with audit logging and repository-scoped OAuth is included as defense-in-depth against credential overreach.

The quest for software engineering knowledge.

Look:
Layout: