Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. diffusers
  4. ›
  5. GHSA-j7w6-vpvq-j3gm

GHSA-j7w6-vpvq-j3gm: Diffusers: None.py has Trust Remote Code Bypass

May 7, 2026

The vulnerability is a silent RCE - it allows arbitrary code to be loaded through the custom_pipeline flow from a Hub repo, with no custom_pipeline or trust_remote_code kwargs and nothing suspicious in the config. The from_pretrained call succeeds and returns a functional pipeline.

References

  • github.com/advisories/GHSA-j7w6-vpvq-j3gm
  • github.com/huggingface/diffusers
  • github.com/huggingface/diffusers/commit/a37f6f8394ac2a7ee8360c3abea811efe54512b1
  • github.com/huggingface/diffusers/pull/13448
  • github.com/huggingface/diffusers/releases/tag/v0.38.0
  • github.com/huggingface/diffusers/security/advisories/GHSA-j7w6-vpvq-j3gm

Code Behaviors & Features

Detect and mitigate GHSA-j7w6-vpvq-j3gm with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.38.0

Fixed versions

  • 0.38.0

Solution

Upgrade to version 0.38.0 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

pypi/diffusers/GHSA-j7w6-vpvq-j3gm.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 00:19:36 +0000.