pypi / onnx
onnx
What changed in onnx 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
10 breaking15 security28 new APIs and options2 performance10 behavior and defaults1 tooling35 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initonnx 1101 changes
Breaking changes 10
The IR version changes from 13 to 14; developers creating or consuming models may need to account for the new version.
ReduceLogSum operators in opset 28 are restricted to float types.
Attention applies softcap before mask and bias, changing the operation order.
Values 1 and 2 are swapped to match computation order, which may change results for models using this attribute.
Integer division semantics use truncation toward zero.
The defunct model hub integration was removed.
Deprecated methods are removed.
The manylinux target changes from manylinux_2014 to manylinux_2_28, which may affect Linux wheel compatibility.
The required Python version is updated to 3.10, and Python 3.9 wheel builds are removed.
Invalid input types now raise TypeError.
Security 15
Fixes object state corruption and denial-of-service risks from ExternalDataInfo attribute injection, and a TOCTOU race when opening external data files.
Detects cycles in model-local functions to prevent stack overflow.
Adds OpenSSF-recommended compiler flags to ONNX_HARDENING.
ONNX has Null Pointer Dereference in Upsample Version Converter Adapter (Zero Inputs)
ONNX: Heap-Buffer-Overflow READ in Gemm Version Converter Adapter via Undersized Input Shape
ONNX: Null Pointer Dereference in ScanInferenceFunction Due to Missing Required Attribute
ONNX: Out-of-bounds read in ConvTranspose shape inference via undersized weight rank
ONNX: Out-of-Bounds Read in RNN/GRU/LSTM Shape Inference (Old Opsets, Missing Rank Check)
Validates packed tensor dimensions against payload size during unpacking and checks packed sub-byte tensor payload size in the checker.
ONNX: Arbitrary File Read via ExternalData Hardlink Bypass in ONNX load
ONNX: External Data Symlink Traversal
ONNX: Malicious ONNX models can crash servers by exploiting unprotected object settings.
ONNX: TOCTOU arbitrary file read/write in save_external_dat
onnx Vulnerable to Path Traversal via Symlink
Missing input shape validation that could cause a segfault is fixed.
New APIs and options 28
Attention opset 25 adds the local_window_size attribute.
BitShift-28 adds signed integer type support.
Celu-28 adds float16, bfloat16, and double support.
Compress and related operators add bfloat16 support.
The latest DequantizeLinear reference implementation is registered.
FLOAT6E2M3 is added as a quantization data type.
FLOAT6E3M2 is added as a quantization data type.
The latest QuantizeLinear reference implementation is registered.
Opset 28 adds a mode attribute with DCR and CRD choices; function bodies are also added for SpaceToDepth and DepthToSpace.
SwiGLU is added as an ONNX function-op.
Introduces the CausalConvWithState operator in opset 27.
Allows overriding the CMake build directory via an environment variable.
Adds the FlexAttention operator to the ai.onnx.preview opset.
Introduces the LinearAttention operator in opset 27.
The parser and printer now support quoted strings as symbolic dimensions.
The BitCast operator is added for bitwise type reinterpretation.
The Cumulative Product operator is added.
DataTypeSet can now be converted into set[str].
Functions can now be exported.
This CMake option disables CMake installations.
The IR adds an API to generate unique names for consistency.
Adapters are added for converting opsets 15, 16, 17, and 18.
Functions are exported from the ONNX build, including functions used in PyTorch.
Protobuf symbols are exported from the ONNX build.
Additional conversion support from version 19 to version 18 is added, including type op conversion.
ONNX adds support for 2-bit types, allowing models to represent values with 2-bit precision.
Operator schemas gain a node determinism attribute; enforcement of the attribute is removed.
ONNX 1.20.0 introduces Opset 25, including updated operator schemas.
Performance 2
The reference Conv implementation is vectorized, changing its performance.
Speeds up Resize using separable interpolation.
Behavior and default changes 10
Mod allows float input when fmod is 0.
Optional operators support all IR14 types.
Range is marked deterministic.
Reference evaluation now supports higher-rank inputs.
The reference evaluator performs runtime checks of shape annotations.
Extends the opset 27 Range operator to support float16 and bfloat16.
The model domain requirement changes from MUST to SHOULD.
Enforcement of the node determinism attribute is removed.
The IR now keeps non-tensor type information.
Attention GQA is updated to use repeat interleave within repeat kv.
Tooling 1
Ninja builds are supported.
Fixes and other changes 35
Fixes a version miss for Opset 28.
Validates the offset in save_external_data.
The causal-mask and padding-mask paths in opsets 23 and 24 fix a bfloat16 type mismatch.
Causal-mask alignment and NaN robustness are fixed when is_causal is composed with attn_mask for external static KV caches.
Float parsing no longer depends on the locale.
The reference implementation rejects out-of-range axes.
A heap buffer over-read in shape inference for weight rank mismatch is fixed.
Einsum-28 adds bfloat16 support.
The checker rejects non-canonical FLOAT6 encodings.
The reference implementation fixes output shape for empty indices.
The reference implementation now handles scalar inputs.
Shape inference is fixed when depth is empty.
The reference implementation fixes behavior on empty boolean tensors.
The reference implementation now handles zero-length slices.
Shape inference validates num_scan_inputs to prevent underflow.
The reference implementation fixes min and max with multi-axis indices.
Circular mode now wraps non-sequence coordinates correctly.
Handles PathLike inputs consistently.
Sets ref_attr_name when creating an attribute reference.
Validates that the tensor value count matches expectations.
Improves handling of external data files when loading ONNX models.
Adds support for NodeProto inputs.
Fixes output saturation in the reference implementation.
Fixes additional bugs in the Scan reference operator.
Fixes the missing mul reduction in the ScatterElements reference implementation.
The behavior for inverse=True and onesided=True is clarified for irfft.
The specification now defines the 0/0 case.
The IoU threshold uses a strict comparison.
The opset version is bumped to 26, affecting the operator schemas available to models targeting that opset.
A fix addresses IsOnnxStaticRegistrationDisabled() breaking schema registration in external modules.
Integer dtype division is fixed in the reference implementation.
Python 3.14 is supported via Python's stable ABI.
The reference implementation fixes noop_with_empty_axes handling in Reduce operators.
The reference evaluator treats empty axes as empty.
Handling of empty inputs for the Softmax operator is fixed.