Advisory

GHSA-hqmj-h5c6-369m

Also known as: CVE-2026-28500, PYSEC-2026-103

Summary

ONNX Untrusted Model Repository Warnings Suppressed by silent=True in onnx.hub.load() — Silent Supply-Chain Attack

Details

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 None

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.

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-03-16 16:23 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

onnx

PyPI · All systems

Affected

  • introduced 0, fixed 1.21.0rc1 (ecosystem)

Fixed versions

1.21.0rc1

Fix

  • Fixed version 1.21.0rc1
    pip install --upgrade onnx==1.21.0rc1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences