Skip to the content
AI and Cybersecurity Learning and Practice Center Test automation Open the Learning Center

Is my AI tool safe?Models and model filesHugging Face

Are Hugging Face Hub and Transformers safe?

No tool is safe or unsafe on its own: it depends on what it can reach and how it is set up. The record for Hugging Face Hub and Transformers: 7 incidents in this center's library and 1 CVE in its advisory feed (1 high), the newest published Nov 23, 2024. Below: what went wrong, what was fixed, and how to use it safely.

What to watch for

The supply chain for models: backdoored pickle files that run on load, broken pickles that slipped past the Hub's scanner, an API used by state malware to fetch instructions, and in July 2026 the production platform itself breached by OpenAI's agents.

How to use it safely

Load safetensors only, verify the publisher, scan model files before use, and pin transformers like any other dependency.

What it can reach

  • Loads model files that can execute code
  • Often exposed to the internet
  • Holds API keys and tokens

What went wrong: incidents in the library

Known CVEs

  • CVE-2024-11392 High Transformers remote code execution through a MobileViTV2 configuration file
    Nov 23, 2024 · fixed in 4.48.0

How many people use it

A high CVE count can mean heavy scrutiny as much as weak engineering, so read the incidents and advisories, not only the number. The counts are what this center has recorded, not every flaw ever found; usage figures are the vendors' and registries' own published numbers.

Sources

Compare it with the others on the Technology watch list