Lookup for vulnerable packages by Package URL.

Purlpkg:pypi/diffusers@0.5.0
Typepypi
Namespace
Namediffusers
Version0.5.0
Qualifiers
Subpath
Is_vulnerabletrue
Next_non_vulnerable_version0.38.0
Latest_non_vulnerable_version0.38.0
Affected_by_vulnerabilities
0
url VCID-cejb-khrm-cuaa
vulnerability_id VCID-cejb-khrm-cuaa
summary Diffusers is the a library for pretrained diffusion models. Prior to 0.38.0, a trust_remote_code bypass in DiffusionPipeline.from_pretrained allows arbitrary remote code execution despite the user passing trust_remote_code=False (or omitting it, which is the default). The vulnerability has three variants, all sharing the same root cause — the trust_remote_code gate was implemented inside DiffusionPipeline.download() rather than at the actual dynamic-module load site, so any code path that bypassed or short-circuited download() also bypassed the security check. DiffusionPipeline.from_pretrained('repoA', custom_pipeline='attacker/repoB', trust_remote_code=False) — the gate evaluated against repoA's file list rather than repoB's, so repoB's pipeline.py was loaded and executed. DiffusionPipeline.from_pretrained('/local/snapshot', custom_pipeline='attacker/repoB', trust_remote_code=False) — the local-path branch never invoked download(), so the gate was never reached and remote code from repoB executed. DiffusionPipeline.from_pretrained('/local/snapshot', trust_remote_code=False) where the snapshot contains custom component files (e.g. unet/my_unet_model.py) referenced from model_index.json — same root cause; the local path skipped download() and custom component code executed. This vulnerability is fixed in 0.38.0.
references
0
reference_url https://github.com/huggingface/diffusers/security/advisories/GHSA-98h9-4798-4q5v
reference_id
reference_type
scores
0
value 8.8
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
url https://github.com/huggingface/diffusers/security/advisories/GHSA-98h9-4798-4q5v
fixed_packages
0
url pkg:pypi/diffusers@0.38.0
purl pkg:pypi/diffusers@0.38.0
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/diffusers@0.38.0
aliases CVE-2026-44513, GHSA-98h9-4798-4q5v, PYSEC-2026-40
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-cejb-khrm-cuaa
1
url VCID-ne11-rre2-juc8
vulnerability_id VCID-ne11-rre2-juc8
summary Diffusers is the a library for pretrained diffusion models. Prior to 0.38.0, diffusers 0.37.0 allows remote code execution without the trust_remote_code=True safeguard when loading pipelines from Hugging Face Hub repositories. The _resolve_custom_pipeline_and_cls function in pipeline_loading_utils.py performs string interpolation on the custom_pipeline parameter using f"{custom_pipeline}.py". When custom_pipeline is not supplied by the user, it defaults to None, which Python interpolates as the literal string "None.py". If an attacker publishes a Hub repository containing a file named None.py with a class that subclasses DiffusionPipeline, the file is automatically downloaded and executed during a standard DiffusionPipeline.from_pretrained() call with no additional keyword arguments. The trust_remote_code check in DiffusionPipeline.download() is bypassed because it evaluates custom_pipeline is not None as False (since the kwarg was never supplied), while the downstream code path that actually loads the module resolves the None value into a valid filename. An attacker can achieve silent arbitrary code execution by publishing a malicious model repository with a None.py file and a standard-looking model_index.json that references a legitimate pipeline class name, requiring only that a victim calls from_pretrained on the repository. This vulnerability is fixed in 0.38.0.
references
0
reference_url https://github.com/huggingface/diffusers/security/advisories/GHSA-j7w6-vpvq-j3gm
reference_id
reference_type
scores
0
value 8.8
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
url https://github.com/huggingface/diffusers/security/advisories/GHSA-j7w6-vpvq-j3gm
fixed_packages
0
url pkg:pypi/diffusers@0.38.0
purl pkg:pypi/diffusers@0.38.0
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/diffusers@0.38.0
aliases CVE-2026-44827, GHSA-j7w6-vpvq-j3gm, PYSEC-2026-41
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-ne11-rre2-juc8
Fixing_vulnerabilities
Risk_scorenull
Resource_urlhttp://public2.vulnerablecode.io/packages/pkg:pypi/diffusers@0.5.0