unstale

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 init

@unstale/cli on npm

onnx 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.

    1.23.0release notes

  • ReduceLogSum operators in opset 28 are restricted to float types.

    1.23.0release notes

  • Attention applies softcap before mask and bias, changing the operation order.

    1.22.0release notes

  • Values 1 and 2 are swapped to match computation order, which may change results for models using this attribute.

    1.22.0release notes

  • Integer division semantics use truncation toward zero.

    1.21.0release notes

  • The defunct model hub integration was removed.

    1.21.0release notes

  • Deprecated methods are removed.

    1.20.0release notes

  • The manylinux target changes from manylinux_2014 to manylinux_2_28, which may affect Linux wheel compatibility.

    1.20.0release notes

  • The required Python version is updated to 3.10, and Python 3.9 wheel builds are removed.

    1.20.0release notes

  • Invalid input types now raise TypeError.

    1.20.0release notes

Security 15

  • Fixes object state corruption and denial-of-service risks from ExternalDataInfo attribute injection, and a TOCTOU race when opening external data files.

    1.22.0release notes

  • Detects cycles in model-local functions to prevent stack overflow.

    1.22.0release notes

  • Adds OpenSSF-recommended compiler flags to ONNX_HARDENING.

    1.22.0release notes

  • ONNX has Null Pointer Dereference in Upsample Version Converter Adapter (Zero Inputs)

    1.22.0security advisory

  • ONNX: Heap-Buffer-Overflow READ in Gemm Version Converter Adapter via Undersized Input Shape

    1.22.0security advisory

  • ONNX: Null Pointer Dereference in ScanInferenceFunction Due to Missing Required Attribute

    1.22.0security advisory

  • ONNX: Out-of-bounds read in ConvTranspose shape inference via undersized weight rank

    1.22.0security advisory

  • ONNX: Out-of-Bounds Read in RNN/GRU/LSTM Shape Inference (Old Opsets, Missing Rank Check)

    1.22.0security advisory

  • Validates packed tensor dimensions against payload size during unpacking and checks packed sub-byte tensor payload size in the checker.

    1.22.0release notessecurity advisory

  • ONNX: Arbitrary File Read via ExternalData Hardlink Bypass in ONNX load

    1.21.0security advisory

  • ONNX: External Data Symlink Traversal

    1.21.0security advisory

  • ONNX: Malicious ONNX models can crash servers by exploiting unprotected object settings.

    1.21.0security advisory

  • ONNX: TOCTOU arbitrary file read/write in save_external_dat

    1.21.0security advisory

  • onnx Vulnerable to Path Traversal via Symlink

    1.21.0security advisory

  • Missing input shape validation that could cause a segfault is fixed.

    1.20.0release notes

New APIs and options 28

  • Attention opset 25 adds the local_window_size attribute.

    1.23.0release notes

  • BitShift-28 adds signed integer type support.

    1.23.0release notes

  • Celu-28 adds float16, bfloat16, and double support.

    1.23.0release notes

  • Compress and related operators add bfloat16 support.

    1.23.0release notes

  • The latest DequantizeLinear reference implementation is registered.

    1.23.0release notes

  • FLOAT6E2M3 is added as a quantization data type.

    1.23.0release notes

  • FLOAT6E3M2 is added as a quantization data type.

    1.23.0release notes

  • The latest QuantizeLinear reference implementation is registered.

    1.23.0release notes

  • Opset 28 adds a mode attribute with DCR and CRD choices; function bodies are also added for SpaceToDepth and DepthToSpace.

    1.23.0release notes

  • SwiGLU is added as an ONNX function-op.

    1.23.0release notes

  • Introduces the CausalConvWithState operator in opset 27.

    1.22.0release notes

  • Allows overriding the CMake build directory via an environment variable.

    1.22.0release notes

  • Adds the FlexAttention operator to the ai.onnx.preview opset.

    1.22.0release notes

  • Introduces the LinearAttention operator in opset 27.

    1.22.0release notes

  • The parser and printer now support quoted strings as symbolic dimensions.

    1.22.0release notes

  • The BitCast operator is added for bitwise type reinterpretation.

    1.21.0release notes

  • The Cumulative Product operator is added.

    1.21.0release notes

  • DataTypeSet can now be converted into set[str].

    1.21.0release notes

  • Functions can now be exported.

    1.21.0release notes

  • This CMake option disables CMake installations.

    1.21.0release notes

  • The IR adds an API to generate unique names for consistency.

    1.21.0release notes

  • Adapters are added for converting opsets 15, 16, 17, and 18.

    1.21.0release notes

  • Functions are exported from the ONNX build, including functions used in PyTorch.

    1.20.1release notes

  • Protobuf symbols are exported from the ONNX build.

    1.20.1release notes

  • Additional conversion support from version 19 to version 18 is added, including type op conversion.

    1.20.0release notes

  • ONNX adds support for 2-bit types, allowing models to represent values with 2-bit precision.

    1.20.0release notesrelease notes

  • Operator schemas gain a node determinism attribute; enforcement of the attribute is removed.

    1.20.0release notes

  • ONNX 1.20.0 introduces Opset 25, including updated operator schemas.

    1.20.0release notes

Performance 2

  • The reference Conv implementation is vectorized, changing its performance.

    1.23.0release notes

  • Speeds up Resize using separable interpolation.

    1.22.0release notes

Behavior and default changes 10

  • Mod allows float input when fmod is 0.

    1.23.0release notes

  • Optional operators support all IR14 types.

    1.23.0release notes

  • Range is marked deterministic.

    1.23.0release notes

  • Reference evaluation now supports higher-rank inputs.

    1.23.0release notes

  • The reference evaluator performs runtime checks of shape annotations.

    1.23.0release notes

  • Extends the opset 27 Range operator to support float16 and bfloat16.

    1.22.0release notes

  • The model domain requirement changes from MUST to SHOULD.

    1.21.0release notes

  • Enforcement of the node determinism attribute is removed.

    1.21.0release notes

  • The IR now keeps non-tensor type information.

    1.21.0release notes

  • Attention GQA is updated to use repeat interleave within repeat kv.

    1.20.0release notes

Tooling 1

Fixes and other changes 35

  • Fixes a version miss for Opset 28.

    1.23.2release notes

  • Validates the offset in save_external_data.

    1.23.1release notes

  • The causal-mask and padding-mask paths in opsets 23 and 24 fix a bfloat16 type mismatch.

    1.23.0release notes

  • Causal-mask alignment and NaN robustness are fixed when is_causal is composed with attn_mask for external static KV caches.

    1.23.0release notes

  • Float parsing no longer depends on the locale.

    1.23.0release notes

  • The reference implementation rejects out-of-range axes.

    1.23.0release notes

  • A heap buffer over-read in shape inference for weight rank mismatch is fixed.

    1.23.0release notes

  • Einsum-28 adds bfloat16 support.

    1.23.0release notes

  • The checker rejects non-canonical FLOAT6 encodings.

    1.23.0release notes

  • The reference implementation fixes output shape for empty indices.

    1.23.0release notes

  • The reference implementation now handles scalar inputs.

    1.23.0release notes

  • Shape inference is fixed when depth is empty.

    1.23.0release notes

  • The reference implementation fixes behavior on empty boolean tensors.

    1.23.0release notes

  • The reference implementation now handles zero-length slices.

    1.23.0release notes

  • Shape inference validates num_scan_inputs to prevent underflow.

    1.23.0release notes

  • The reference implementation fixes min and max with multi-axis indices.

    1.23.0release notes

  • Circular mode now wraps non-sequence coordinates correctly.

    1.23.0release notes

  • Handles PathLike inputs consistently.

    1.22.0release notes

  • Sets ref_attr_name when creating an attribute reference.

    1.22.0release notes

  • Validates that the tensor value count matches expectations.

    1.22.0release notes

  • Improves handling of external data files when loading ONNX models.

    1.22.0release notes

  • Adds support for NodeProto inputs.

    1.22.0release notes

  • Fixes output saturation in the reference implementation.

    1.22.0release notes

  • Fixes additional bugs in the Scan reference operator.

    1.22.0release notes

  • Fixes the missing mul reduction in the ScatterElements reference implementation.

    1.22.0release notes

  • The behavior for inverse=True and onesided=True is clarified for irfft.

    1.21.0release notes

  • The specification now defines the 0/0 case.

    1.21.0release notes

  • The IoU threshold uses a strict comparison.

    1.21.0release notes

  • The opset version is bumped to 26, affecting the operator schemas available to models targeting that opset.

    1.21.0release notes

  • A fix addresses IsOnnxStaticRegistrationDisabled() breaking schema registration in external modules.

    1.20.0release notes

  • Integer dtype division is fixed in the reference implementation.

    1.20.0release notes

  • Python 3.14 is supported via Python's stable ABI.

    1.20.0release notes

  • The reference implementation fixes noop_with_empty_axes handling in Reduce operators.

    1.20.0release notes

  • The reference evaluator treats empty axes as empty.

    1.20.0release notes

  • Handling of empty inputs for the Softmax operator is fixed.

    1.20.0release notes