Hugging Face releases Diffusers 0.42.1 security update
Tech

Hugging Face releases Diffusers 0.42.1 security update

TechNews Editorial
TechNews EditorialOct 27, 2026 · 1 min read
Share

Why it matters

Hugging Face says this security release changes component resolution across three loading paths and encourages all users of version 0.42.0 to upgrade.

The facts

  • Hugging Face released Diffusers 0.42.1 as a security update to component library name resolution.
  • The change covers DiffusionPipeline, AutoModel and ModularPipeline loading paths.
  • Hugging Face encourages all users of version 0.42.0 to upgrade.

Advertisement

Hugging Face has released Diffusers 0.42.1 as a security update. It changes how from_pretrained resolves the library name declared for a component. The company encourages all users of version 0.42.0 to upgrade.

When a pipeline or model lists its components in model_index.json or config.json, each component is declared as a pair: a library name and a class name. The patch changes how the library name in that pair is resolved during loading.

According to the release notes, the change applies across three loading paths: DiffusionPipeline, AutoModel and ModularPipeline. Hugging Face identifies each of those paths as part of the component resolution fix in this release.

Read nextAi2 releases OlmoEarth v1.3 with global satellite embeddings

The update also adds a clearer error when the declared class cannot be found in the resolved module. Hugging Face calls 0.42.1 a security release and directs readers to advisory GHSA-4prv-5hj7-c2xr for details.

The company's upgrade recommendation is directed at everyone using Diffusers 0.42.0. Version 0.42.1 is available to install with the command pip install diffusers==0.42.1.

Source: Hugging Face

Newsletter

Get the best AI & tech news daily

A concise daily digest. Unsubscribe anytime.

We use your email only to send this newsletter.

Keep reading