Skip to main content

ONNXMLTools EUVDEUVD-2026-136936

| CVE-2026-137668 LOW
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (CWE-74)
2026-11-27 cna@vuldb.com GHSA-w87m-77wg-pmhq
2.1
CVSS 4.0 · Vendor: vuldb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft ONNX model with payload in producer_name
  2. Exploit
    Victim runs visualize_model and opens generated HTML
  3. Execution
    Browser renders unescaped attacker string
  4. Impact
    Arbitrary 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

ONNXMLTools 1.4
ONNXMLTools 1.12
ONNXMLTools 1.7
ONNXMLTools 1.11
ONNXMLTools 1.0
ONNXMLTools 1.13
ONNXMLTools 1.14
ONNXMLTools 1.16.0
ONNXMLTools 1.15
ONNXMLTools 1.1
ONNXMLTools 1.6
ONNXMLTools 1.10
ONNXMLTools 1.2
ONNXMLTools 1.3
ONNXMLTools 1.5
ONNXMLTools 1.8
ONNXMLTools 1.9

Affected Packages

euvd onnxmltools no fix

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

Vendor (vuldb) PRIMARY 2.1 LOW
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
vuln.today AI 6.1 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (vuldb).

CVSS VectorVendor: vuldb

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.4%
Top 78% exploitable
Prevalence
Low
niche ML model-conversion library; visualization utility rarely used in production
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy