Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft ONNX model with payload in producer_name
-
ExploitVictim runs visualize_model and opens generated HTML
-
ExecutionBrowser renders unescaped attacker string
-
ImpactArbitrary JavaScript executes in victim's browser context
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Exploitation Conditions | Exploitation requires an attacker to supply a crafted ONNX model whose producer_name field (per the source diff, also producer_version and graph node names are affected sinks) contains an HTML or JavaScript payload, AND a victim must actively invoke the visualize_model function in onnxmltools/utils/visualize.py on that model and then open the generated HTML output (default index.html) in a web browser. This is the limiting factor: there is no automatic or remote-service trigger - it depends on a human using the visualization utility (UI:P/UI:R) on untrusted model input. Impact is confined to script execution in the browser rendering a locally generated file, with low integrity impact and no confidentiality or availability impact; it affects all versions up to 1.16.0 in default configuration since no escaping is applied, and the fix is not yet merged. |
| Impact | This is a genuinely low-priority issue, and the signals are consistent in saying so. The CVSS 4.0 base score is 2.1 (Low) with vector AV:N/AC:L/AT:N/PR:N/UI:P and only VI:L (low integrity) impact - no confidentiality, availability, or subsequent-system impact. The vulnerability class is client-side cross-site scripting (CWE-74/XSS) in a developer visualization utility, not a server-side or RCE flaw. There is no CISA KEV listing and no EPSS score supplied, so there is no evidence of active or widespread exploitation; the vendor-ecosystem Decision label is 'monitor', matching the low CVSS. A PoC is referenced (E:P in the vector and a github-poc exploit link), but it is a reference only and not verified as working exploit code, so POC availability should not be mistaken for active exploitation. The one factor that keeps this from being purely theoretical is that the fix (PR #817) is still awaiting acceptance - the code remains unpatched in the mainline up to 1.16.0 - but the low impact and required user interaction (UI:P: a victim must render an attacker-supplied model and open the resulting HTML) mean this is not an emergency. Note that although the CVSS 4.0 vector sets AV:N, delivery is really via an attacker-supplied model file that the victim must process locally, so 'network' here means the malicious model can be obtained remotely, not that a listening service is attacked. |
| Exploit ScenarioDerived | An attacker publishes or shares a malicious ONNX model whose producer_name (or other embedded string fields) contains an HTML/JavaScript payload such as '<img src=x onerror=alert(2)>'. A developer or analyst runs onnxmltools' visualize_model on that model and opens the generated index.html in a browser, at which point the unescaped payload executes as script in the browser context. A PoC archive is referenced in the sources but is not verified as functional exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 27, 2026
Cross-site scripting in ONNXMLTools' visualize_model through 1.16.0 allows a crafted ONNX model to inject HTML or JavaScript into the locally generated visualization page when a user invokes the utility and opens the resulting HTML file. The issue is low severity (CVSS 4.0 base score 2.1; independent assessment scores it 3.1 under CVSS 3.1), and exploitation requires victim interaction even though the vector indicates no privileges are required; there is no automatic or remote-service trigger. No CISA KEV status is reported, and a public PoC reference exists but is not verified as working exploit code; the proposed fix in PR #817 awaits acceptance.
RemediationAI
No vendor-released patched version is identified; the proposed upstream fix in PR #817 awaits acceptance or merge. Until a fixed release is available, do not call visualize_model on untrusted or attacker-supplied ONNX models, because rendering such a model is the trigger. If visualization of untrusted models is required, sanitize producer_name, producer_version, and graph node, input and output names before rendering, or treat the generated index.html as untrusted content and open it only in an isolated browser profile with JavaScript disabled or in a disposable environment; these measures reduce exposure but do not fix the missing output encoding, and disabling JavaScript may prevent the visualization from rendering. Track https://github.com/onnx/onnxmltools/issues/816 and https://github.com/onnx/onnxmltools/pull/817 for the fix; additional references are https://github.com/onnx/onnxmltools/ and https://vuldb.com/cve/CVE-2026-137668.
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 for converting models to ONNX that includes a visualization utility. visualize_model reads model metadata and graph node names and writes an HTML file, by default index.html, containing inline JavaScript. The affected code embedded producer_name and producer_version directly into HTML and embedded graph node names into JavaScript string and CSS class contexts without neutralization, which is consistent with CWE-74 injection: model-controlled strings are not escaped or encoded for the output context. The PR diff shows html.escape being applied to producer fields, a _js_string helper using json.dumps plus Unicode escaping for <, > and &, and a _css_class sanitizer, with tests covering malicious input names, producer name, producer version and output names. The source diff indicates graph node names, producer_name and producer_version are the affected sinks; exploitation requires a crafted ONNX model plus a human to run the visualization and open the generated file in a browser.
Know when the next one hits your stack
- 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-controlled model field injects script, but a victim must render and open the output (UI:R); script runs in the browser context separate from the tool (S:C) with limited C/I impact and no availability loss.
Primary rating from Vendor (vuldb).
CVSS VectorVendor: vuldb
DescriptionCVE.org
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.
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.
EUVD-2026-136936
GHSA-w87m-77wg-pmhq
NVD
CVE.org
EPSS
VulDB
Exploit-DB