{"answers":{"affected":"3 open source packages ship an affected version, including diffusers. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-44827 exists.","fix":"Upgrade diffusers to 0.38.0 or later.","what":"CVE-2026-44827 is a high-severity code injection vulnerability in huggingface diffusers, published on 14 May 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-44827 and fix it if it is affected.\n\nWhat it is: CVE-2026-44827 is a high-severity code injection vulnerability in huggingface diffusers, published on 14 May 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-44827 exists.\n\nAffected packages and fixed versions:\n- diffusers (PyPI): affected all versions; fixed in 0.38.0\n- diffusers (PyPI): affected all versions; fixed in 0.38.0\n- diffusers (PyPI): affected all versions; fixed in 0.38.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-44827/ (Markdown: https://insights.sbomify.com/CVE-2026-44827/index.md)","id":"CVE-2026-44827","markdown":"https://insights.sbomify.com/CVE-2026-44827/index.md","name":"CVE-2026-44827","record":{"aliases":["GHSA-j7w6-vpvq-j3gm","PYSEC-2026-41"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Python diffusion library","requires_auth":"none","summary":"Attackers can execute arbitrary code by publishing a malicious None.py file in a Hugging Face repository, bypassing trust_remote_code safeguards in Diffusers.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"diffusers","vendor":"huggingface"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Diffusers: None.py Trust Remote Code Bypass","id":"CVE-2026-44827","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":3,"n_references":1,"next":{"headline":"Qexo initialization endpoint can reset setup state and expose stored credentials","id":"CVE-2026-44828"},"packages":[{"ecosystem":"PyPI","fixed":["0.38.0"],"introduced":["0"],"last_affected":[],"package":"diffusers","purl":null,"source":"GHSA-j7w6-vpvq-j3gm"},{"ecosystem":"PyPI","fixed":["0.38.0"],"introduced":["0"],"last_affected":[],"package":"diffusers","purl":"pkg:pypi/diffusers","source":"GHSA-j7w6-vpvq-j3gm"},{"ecosystem":"PyPI","fixed":["0.38.0"],"introduced":["0"],"last_affected":[],"package":"diffusers","purl":"pkg:pypi/diffusers","source":"PYSEC-2026-41"}],"prev":{"headline":"Vvveb: Vvveb CMS — Negative-quantity cart manipulation allows creation of orders with negative grand totals","id":"CVE-2026-44826"},"products":["diffusers"],"published":"2026-05-14","related":[{"cvss_score":8.8,"headline":"Diffusers: `trust_remote_code` bypass via `custom_pipeline` and local custom components","id":"CVE-2026-44513","kev_date_added":null,"published":"2026-05-14"},{"cvss_score":7.5,"headline":"Diffusers: TOCTOU Trust Remote Code Bypass","id":"CVE-2026-45804","kev_date_added":null,"published":"2026-07-15"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-05-14","vendors":["huggingface"]},"summary":"Attackers can execute arbitrary code by publishing a malicious None.py file in a Hugging Face repository, bypassing trust_remote_code safeguards in Diffusers.","url":"https://insights.sbomify.com/CVE-2026-44827/"}