CVE-2026-137668 in ONNXMLToolsinfo

Summary

by MITRE • 11/27/2026

A flaw has been found in ONNX ONNXMLTools up to 1.16.0. This impacts the function visualize_model of the file onnxmltools/utils/visualize.py. This manipulation of the argument producer_name causes basic cross site scripting. The attack is possible to be carried out remotely. The exploit has been published and may be used. The pull request to fix this issue awaits acceptance.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 11/27/2026

The Open Neural Network Exchange (ONNX) ecosystem, specifically within ONNXMLTools versions up to 1.16.0, contains a critical security vulnerability affecting the visualization utilities provided by the library. This flaw resides in the visualize_model function located in the onnxmltools/utils/visualize.py module. The core issue stems from improper neutralization of special elements used in an output mode known as cross-site scripting (XSS). When developers or analysts utilize this tool to generate visual representations of neural network models, the system fails to adequately sanitize user-supplied input before rendering it into HTML structures. This lack of proper validation allows malicious actors to inject executable scripts that are subsequently executed by a victim's web browser when viewing the generated visualization.

The specific technical flaw involves the manipulation of the producer_name argument within the visualize_model function. In many data science workflows, model metadata such as the producer name is embedded into HTML reports or interactive dashboards for documentation and analysis purposes. Because this input parameter is not properly encoded or validated against a whitelist of safe characters, it becomes an entry point for injection attacks. An attacker who can influence the value of the producer_name field during the creation or modification of an ONNX model file can embed malicious JavaScript code within that metadata. When another user opens the resulting visualization in a web browser, the browser interprets and executes this injected script as if it were part of the legitimate page content.

This vulnerability enables remote cross-site scripting attacks with significant operational impact on data science teams and organizations relying on ONNX for model deployment and analysis. Since the exploit can be carried out remotely, an attacker does not need physical access or local privileges to compromise a target system. Instead, they only need to distribute a maliciously crafted ONNX file containing the injected script. When a victim with appropriate permissions opens this file using vulnerable versions of ONNXMLTools, their browser executes the arbitrary code. This can lead to session hijacking, where attackers steal authentication cookies or tokens; credential theft by mimicking login forms; defacement of internal dashboards; or redirection to phishing sites. In enterprise environments, this could facilitate lateral movement if combined with other vulnerabilities in connected systems.

The presence of a published exploit further elevates the risk profile associated with this vulnerability. Attackers can leverage existing proof-of-concept code to quickly identify and compromise vulnerable instances without needing to develop custom exploitation techniques from scratch. This lowers the barrier to entry for less sophisticated threat actors, increasing the likelihood of automated scanning and opportunistic attacks against organizations using outdated versions of ONNXMLTools. The fact that a pull request exists to fix this issue indicates that the community has identified the problem, but until it is merged into an official release, systems remain exposed.

To mitigate this risk, immediate action should be taken by updating ONNXMLTools to a version where the producer_name input sanitization has been properly implemented. Organizations must audit their CI/CD pipelines and development environments to ensure that no legacy versions of the library are in use for model visualization tasks. Additionally, implementing Content Security Policy headers can provide an additional layer of defense by restricting the sources from which scripts can be loaded or executed, thereby mitigating the impact even if a successful injection occurs. Developers should also adopt secure coding practices such as input validation and output encoding when handling any user-supplied data that will be rendered in web contexts. Regular vulnerability assessments and dependency scanning tools should be employed to detect outdated libraries with known security flaws before they can be exploited in production environments.

Responsible

VulDB

Disclosure

11/27/2026

Moderation

accepted

CPE

ready

Exploit

Download

EPSS

0.00359

KEV

no

Activities

low

Sources

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!