Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft ONNX model with XSS in node/producer names
-
DeliveryDeliver model to victim developer
-
ExploitVictim runs visualize_model to render HTML
-
ExecutionUnescaped value breaks out of inline script literal
-
ImpactJavaScript executes in victim's browser context
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that a victim use the Model Visualization feature - specifically call visualize_model() (which invokes get_set_node) in onnxmltools/utils/visualize.py on an ONNX model that the attacker controls or influenced - and then open the generated HTML file (default index.html) in a browser. The attacker-controlled injection points are model-derived strings written unescaped into the output page: graph node/input names (broken out of the dagre-d3 setNode JavaScript string literal) and producer_name/producer_version (injected into the HTML heading), per the PR #817 fix. Limiting factors that reduce real-world risk: required user interaction (UI:P - the victim must both visualize an untrusted model and open the result), the fact that this is a developer-side utility rather than an exposed network service, and impact confined to the browser rendering the local visualization (VI:L; no confidentiality or availability impact in the vendor vector). It affects onnxmltools up to and including 1.16.0. |
| Impact | This is a moderate-severity, low-urgency issue, not a drop-everything priority. The vendor-supplied CVSS 4.0 vector (CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N, score 5.3) describes a network-reachable, low-complexity, unauthenticated cross-site scripting flaw that requires user interaction (UI:P) and yields only low integrity impact with no confidentiality or availability impact. The SSVC/exploitation maturity is E:P (Proof-of-Concept), consistent with the input stating a PoC reference exists but is not verified as working exploit code. This is NOT CISA KEV-listed, so there is no confirmed active exploitation, and no EPSS score was provided, so widespread-exploitation probability cannot be quantified from this data - a notable gap. The UI:P requirement is the dominant limiting factor: an attacker cannot act remotely against a service; a victim must deliberately render an attacker-supplied ONNX model with the visualization utility and open the resulting HTML. The vuln.today Decision label is 'this_month' (not act_now/emergency), aligning with the picture of a real but lower-tier bug in a developer-facing ML utility. One data conflict to verify: the intelligence says 'Patch: Available from vendor' while the CVE description says 'the pull request to fix this issue awaits acceptance' - PR #817 is open, not necessarily merged into a release - so defenders should confirm whether a fixed release exists or whether only an unmerged PR is available. |
| Exploit ScenarioDerived | An attacker crafts a malicious ONNX model whose graph input/node names or producer metadata contain a JavaScript payload (e.g. a node name that closes the dagre-d3 setNode string literal and injects script). The attacker shares this model (via a model hub, repository, or email); when a developer or analyst runs onnxmltools' visualize_model on it and opens the generated index.html, the unescaped payload executes in their browser. A public PoC reference exists (poc.zip), but it is not verified as working exploit code, and user interaction is required for the attack to succeed. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
Cross-site scripting in ONNX ONNXMLTools 1.16.0 and earlier allows attacker-influenced model metadata to execute script in the browser of anyone who renders an untrusted ONNX model with the built-in Model Visualization utility. Graph node/input names and the model's producer_name and producer_version fields are written into the generated index.html without escaping, so a crafted model can break out of the dagre-d3 script literal or inject markup into the page heading. Exploitation is unauthenticated in the sense that no credentials are involved, but it requires user interaction: the victim must call visualize_model() on the malicious model and then open the resulting HTML file; a public PoC reference exists (a linked proof-of-concept archive), it is not verified as working exploit code, and no confirmed active exploitation or KEV listing was reported. This is a moderate-severity, low-urgency issue, not a drop-everything priority, consistent with the this_month decision label and the developer-side, locally-rendered nature of the affected tool.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed - pull request https://github.com/onnx/onnxmltools/pull/817 (tracked in issue https://github.com/onnx/onnxmltools/issues/815) awaits acceptance as of the description, so no tagged release containing the escaping changes is known. Until a patched version ships, apply these specific controls: do not run visualize_model() on ONNX models from untrusted or third-party sources (the only complete way to avoid the vulnerable rendering path), and if you must inspect an untrusted model, sanitize or rename graph input/output/node names and reset producer_name and producer_version to safe alphanumeric values before visualization - the trade-off is that renaming alters the rendered graph labels and rewriting producer metadata loses provenance details. Where visualization of untrusted models cannot be avoided, open the generated index.html only in an isolated browser profile or throwaway container and inspect the file's inline script and heading markup first; the trade-off is operational overhead, and disabling JavaScript entirely removes the dagre-d3 rendering so the visualization will not display. Apply the same restrictions on any automation that generates visualization HTML from model artifacts pulled from model hubs, CI caches, or shared storage.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
ONNXMLTools is a Python library that converts model formats into ONNX and also ships developer utilities; onnxmltools/utils/visualize.py renders an ONNX graph into a standalone HTML page using D3 and dagre-d3. The vulnerable path is get_set_node(), which builds JavaScript statements via raw string concatenation of graph-derived identifiers: the original code emitted ", { label: '" + node + "', class: 'type-" + node + "' });", meaning a graph input/node name containing quotes or a closing </script> tag escapes the string literal and the inline script element. The same file interpolated onnx_model.producer_name and producer_version directly into the HTML heading body, allowing attribute/markup injection. Both are classic CWE-79 (improper neutralization of input during web page generation) issues whose source of tainted data is the model file itself rather than a network request, which is why the practical attack surface is a developer visualizing a model from an untrusted or third-party source. The unmerged fix in pull request #817 introduces a _js_string() helper that serializes values with json.dumps and then rewrites <, >, and & as \u003c, \u003e, \u0026 so the literal cannot close the script element, adds a _css_class() sanitizer restricted to [0-9A-Za-z_-], and applies html.escape(..., quote=True) to producer_name and producer_version; it also adds tests/utils/test_visualize.py that asserts a single close tag per script element. Severity is bounded because the payload executes only in the context of a locally generated file with no server-side session to steal (assessed CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N gives low confidentiality and integrity impact and no availability impact).
Know when Onnx gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
Attacker-supplied model data is delivered over the network but the victim must render it and open the page (UI:R); no auth (PR:N); XSS executes in the browser context (S:C) with limited read/modify of page content (C:L/I:L).
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A vulnerability was detected in ONNX ONNXMLTools up to 1.16.0. This affects the function get_set_node of the file onnxmltools/utils/visualize.py of the component Model Visualization. The manipulation results in cross site scripting. The attack can be executed remotely. The exploit is now public and may be used. The pull request to fix this issue awaits acceptance.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
A vulnerability in the `download_model_with_test_data` function of the onnx/onnx framework, version 1.16.0, allows for a
Symlink-following arbitrary file write in ONNX's save_external_data function (onnx/external_data_helper.py) allows a loc
Versions of the package onnx before and including 1.15.0 are vulnerable to Out-of-bounds Read as the ONNX_ASSERT and ONN
Arbitrary attribute injection in ONNX Python library (versions prior to 1.21.0) allows unauthenticated remote attackers
Versions of the package onnx before and including 1.15.0 are vulnerable to Directory Traversal as the external_data fiel
Out-of-bounds read in ONNX ConvTranspose shape inference (convTransposeShapeInference and convTransposeShapeInference_op
Out-of-bounds read in ONNX's legacy shape-inference path allows an attacker-supplied model to crash a process that calls
Memory exhaustion denial of service in ONNX prior to 1.22.0: the Python tensor-materialization helpers _unpack_2bit() an
Shape inference in the ONNX library (versions 1.4.0 through 1.21.0) mishandles the required Scan attribute num_scan_inpu
Out-of-bounds read in ONNX versions up to 1.21.x exposes limited memory contents to low-privileged remote attackers via
ONNX versions prior to 1.21.0 allow local attackers to read arbitrary files outside the model directory through symlink
ONNX versions prior to 1.21.0 allow local attackers to read arbitrary files by exploiting a hardlink-based path traversa
EUVD-2026-136898
GHSA-p843-xxqx-wq56
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB