Skip to main content

ONNXMLTools CVE-2026-137667

| EUVDEUVD-2026-136898 LOW
Cross-site Scripting (XSS) (CWE-79)
2026-11-26 VulDB GHSA-p843-xxqx-wq56
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 XSS in node/producer names
  2. Delivery
    Deliver model to victim developer
  3. Exploit
    Victim runs visualize_model to render HTML
  4. Execution
    Unescaped value breaks out of inline script literal
  5. Impact
    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 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.4% exploitation probability (EPSS)

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

Alert me

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

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

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

Vendor (VulDB) PRIMARY 2.1 MEDIUM
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-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).

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

Lifecycle Timeline

3
Severity Changed
Nov 27, 2026 - 00:22 NVD
MEDIUM LOW
CVSS changed
Nov 27, 2026 - 00:22 NVD
5.3 (MEDIUM) 2.1 (LOW)
CVE Published
Nov 26, 2026 - 23:15 cve.org
MEDIUM 5.3

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

EPSS Score
0.4%
Top 73% exploitable
Prevalence
Low
niche developer-facing ML model-conversion library; visualization utility rarely used
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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 Yes
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
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

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.

More in Onnx

View all
CVE-2024-5187 HIGH POC
8.8 Jun 06

A vulnerability in the `download_model_with_test_data` function of the onnx/onnx framework, version 1.16.0, allows for a

CVE-2026-49114 MEDIUM POC
6.8 Aug 21

Symlink-following arbitrary file write in ONNX's save_external_data function (onnx/external_data_helper.py) allows a loc

CVE-2024-27319 CRITICAL
9.1 Feb 23

Versions of the package onnx before and including 1.15.0 are vulnerable to Out-of-bounds Read as the ONNX_ASSERT and ONN

CVE-2026-34445 HIGH
8.6 Apr 01

Arbitrary attribute injection in ONNX Python library (versions prior to 1.21.0) allows unauthenticated remote attackers

CVE-2024-27318 HIGH
7.5 Feb 23

Versions of the package onnx before and including 1.15.0 are vulnerable to Directory Traversal as the external_data fiel

CVE-2026-115920 MEDIUM
6.2 Oct 26

Out-of-bounds read in ONNX ConvTranspose shape inference (convTransposeShapeInference and convTransposeShapeInference_op

CVE-2026-115919 MEDIUM
6.2 Oct 26

Out-of-bounds read in ONNX's legacy shape-inference path allows an attacker-supplied model to crash a process that calls

CVE-2026-115922 MEDIUM
6.2 Oct 26

Memory exhaustion denial of service in ONNX prior to 1.22.0: the Python tensor-materialization helpers _unpack_2bit() an

CVE-2026-115921 MEDIUM
6.2 Oct 26

Shape inference in the ONNX library (versions 1.4.0 through 1.21.0) mishandles the required Scan attribute num_scan_inpu

CVE-2026-14647 LOW POC
2.1 Jul 04

Out-of-bounds read in ONNX versions up to 1.21.x exposes limited memory contents to low-privileged remote attackers via

CVE-2026-34447 MEDIUM
5.5 Apr 01

ONNX versions prior to 1.21.0 allow local attackers to read arbitrary files outside the model directory through symlink

CVE-2026-34446 MEDIUM
4.7 Apr 01

ONNX versions prior to 1.21.0 allow local attackers to read arbitrary files by exploiting a hardlink-based path traversa

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