CVE-2026-45804Huggingface Diffusers
High 7.5 No auth needed
Follow: this CVE · Huggingface · Huggingface Diffusers We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- Jul 15, 2026
- Updated
- Oct 24, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-367
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
Diffusers is the a library for pretrained diffusion models. Prior to 0.38.0, Diffusers' DiffusionPipeline.from_pretrained flow can bypass the trust_remote_code guard because download() validates model_index.json and custom pipeline code before later loading from a cached folder that can change, allowing a Hub repository with custom .py pipeline code to execute through the custom pipeline flow without passing custom_pipeline or trust_remote_code=True. This issue is fixed in version 0.38.0.
What to do
- Apply the vendor's security update for Diffusers.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | diffusers |
< 0.38.0 |
0.38.0 |
pip install "diffusers>=0.38.0" |
| PyPI | diffusers |
< 0.38.0 |
0.38.0 |
pip install "diffusers>=0.38.0" |
Per OSV / GitHub Advisories (GHSA-7wx4-6vff-v64p, PYSEC-2026-2446). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| huggingface | diffusers | < 0.38.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Issue Tracking Exploit
- github.com Issue Tracking
- github.com Release Notes
- github.com Vendor Advisory Exploit