CVE-2026-28500: ONNX Untrusted Model Repository Warnings Suppressed by silent=True in onnx.hub.load() — Silent Supply-Chain Attack
What's the issue Passing silent=True to onnx.hub.load() kills all trust warnings and user prompts. This means a model can be downloaded from any unverified GitHub repo with zero user awareness. On top of that, the SHA256 integrity check is useless here — it validates against a manifest that lives in the same repo the attacker controls, so the hash will always match.
Published Mar 16, 2026 · Updated Jun 8, 2026
Affected packages
onnx
- Ecosystem
- PyPI
- Affected
- <= 1.20.1
- Fixed in
- 1.21.0rc1
- Check
pip show onnx
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
What's the issue
Passing silent=True to onnx.hub.load() kills all trust warnings and user prompts. This means a model can be downloaded from any unverified GitHub repo with zero user awareness.
if not _verify_repo_ref(repo) and not silent:
# completely skipped when silent=True
print("The model repo... is not trusted")
if input().lower() != "y":
return NoneOn top of that, the SHA256 integrity check is useless here — it validates against a manifest that lives in the same repo the attacker controls, so the hash will always match.
Impact
Any pipeline using hub.load() with silent=True and an external repo string is silently loading whatever the repo owner ships. If that model executes arbitrary code on load, the attacker has access to the machine.
Resolved by removing the feature
References
Credited to ZeroXJacks.
References
- https://github.com/onnx/onnx/security/advisories/GHSA-hqmj-h5c6-369m
- https://github.com/ZeroXJacks/CVEs/blob/main/2026/CVE-2026-28500.md
- https://nvd.nist.gov/vuln/detail/CVE-2026-28500
- https://github.com/pypa/advisory-database/tree/main/vulns/onnx/PYSEC-2026-103.yaml
- https://github.com/advisories/GHSA-hqmj-h5c6-369m
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-115919
ONNX: Out-of-Bounds Read in RNN/GRU/LSTM Shape Inference (Old Opsets, Missing Rank Check)
medium6.2Oct 28, 2026CVE-2026-115920
ONNX: Out-of-bounds read in ConvTranspose shape inference via undersized weight rank
medium6.2Oct 28, 2026CVE-2026-115921
ONNX: Null Pointer Dereference in ScanInferenceFunction Due to Missing Required Attribute
medium6.2Oct 28, 2026CVE-2026-115922
ONNX: Denial of service via unchecked expansion of packed sub-byte tensors in ONNX Python APIs
medium6.2Oct 28, 2026CVE-2026-63632
ONNX: Heap-Buffer-Overflow READ in Gemm Version Converter Adapter via Undersized Input Shape
low3.3Jul 24, 2026CVE-2026-44512
ONNX has Null Pointer Dereference in Upsample Version Converter Adapter (Zero Inputs)
medium5.5Jul 7, 2026
