Hugging Face flags safetensors unsafe
Hugging Face's Hub scanners can mark a model repository unsafe even when the weights are stored as `.safetensors`. In practice, that usually points to a repo-level scan result or a malformed file, not a claim that safetensors has the same risk profile as pickle.
This is mostly a heuristics-and-labeling problem, not safetensors suddenly becoming dangerous.
- –HF's security scanner is built to catch risky artifacts like pickle-based checkpoints and suspicious imports, but repo warnings can still trip on edge cases or false positives.
- –Safetensors removes arbitrary-code-execution risk from deserialization, but it does not guarantee the file is benign or well-formed.
- –A `.safetensors` file can still be unsafe to load if it abuses parser behavior, oversized metadata, or other denial-of-service vectors.
- –For teams pulling models, the real check is the exact warning text plus the repo contents, commit provenance, and whether any `.bin` or `.pt` files are also present.
DISCOVERED
2h ago
2026-05-21
PUBLISHED
5h ago
2026-05-21
RELEVANCE
AUTHOR
No_Afternoon_4260