Skip to main content

Vanna EUVDEUVD-2026-91760

| CVE-2026-51911 CRITICAL
Code Injection (CWE-94)
2026-10-02 mitre GHSA-349g-39fc-mvhj
9.8
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Access
    Reach exposed vanna plotting endpoint
  2. Delivery
    Submit crafted question/prompt
  3. Exploit
    Poison LLM-generated Plotly code
  4. Execution
    Trigger exec in get_plotly_figure
  5. Impact
    Execute arbitrary code on server

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the deploying application to expose vanna's figure/plot-generation entry (VannaBase.get_plotly_figure) to attacker-influenced input - the description's 'Depending on the exposed entry' is the governing condition. vanna generates and then executes Plotly code derived from LLM output, so an attacker who can shape the question/prompt reaching an exposed plotting flow (such as vanna's bundled Flask/Streamlit/API front-ends) achieves code/command execution. Limiting factors: deployments that embed vanna without exposing the plotting path, or that gate the ask/plot endpoint behind authentication or restrict who can influence prompts, are substantially less exposed than the 9.8 implies. Affected build confirmed only as v2.0.2.

Impact

Signals conflict and must be weighed carefully. The provided CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N, C:H/I:H/A:H = 9.8 Critical) describes an unauthenticated remote code-execution path, consistent with CWE-94 and the RCE tag. However, the EPSS score is very low (0.36%, 27th percentile), the CVE is NOT in CISA KEV, and exploitation status is 'publicly available exploit code exists' (a researcher gist is referenced) rather than confirmed in-the-wild activity. The most important caveat is in the description itself: 'Depending on the exposed entry' - this means the raw 9.8 is conditional on the deploying application actually exposing the Plotly figure-generation path to attacker-influenced input. For deployments that expose vanna's plotting/ask flow (e.g., the bundled web apps) this is a genuine critical-priority server-side RCE; for libraries embedded without exposing that entry, real-world risk drops sharply. Net: treat as high priority for anyone running vanna's web/API surface, but the low EPSS and conditional exposure mean this is more likely targeted/opportunistic than mass-exploited at present. Verify your own deployment exposes get_plotly_figure before assuming the 9.8 applies.

Exploit ScenarioDerived

An application built on vanna v2.0.2 exposes the text-to-SQL 'ask' flow with chart generation over a web endpoint. An attacker submits a crafted question/prompt that steers the LLM-generated Plotly code so that VannaBase.get_plotly_figure executes attacker-controlled Python, yielding command execution on the server. Public proof-of-concept material is referenced (researcher gist), lowering the barrier to reproduction.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
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 – Oct 05, 2026

Code injection in Vanna 2.0.2's VannaBase.get_plotly_figure presents conflicting signals that must be weighed carefully: the CVSS 3.1 vector is AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (9.8), yet EPSS is only 0.36% (27th percentile) and there is no CISA KEV entry, so no public exploit identified at time of analysis. In CVSS terms this is an unauthenticated remote issue, but the governing exploitation condition is that a deploying application exposes vanna's figure/plot-generation entry to attacker-influenced input; where the plotting path is exposed via bundled Flask/Streamlit/API front ends, an attacker who can shape the question or prompt can achieve attacker-controlled code or command execution, while embedded deployments that gate, authenticate, or do not expose that path are substantially less exposed than the 9.8 score implies.

RemediationAI

No vendor-released patch identified in the provided data at time of analysis; monitor the vendor repository https://github.com/vanna-ai/vanna and the NVD entry https://nvd.nist.gov/vuln/detail/CVE-2026-51911 for an update, and treat any future fixed version as the primary remediation. Until a patch is available, remove or disable the VannaBase.get_plotly_figure plotting path if chart generation is not required, which eliminates the vulnerable execution flow at the cost of losing Plotly figure functionality. If plotting must remain, do not expose the bundled Flask/Streamlit/API front ends to untrusted networks; require authentication and authorization on every endpoint that reaches the ask/plot flow, restrict who can influence prompts, and rate-limit or log those calls, with the trade-off that legitimate users must be provisioned and anonymous charting will stop working. Additionally, run Vanna in a sandboxed, least-privilege process with no unnecessary outbound network access, a read-only filesystem, and OS-level confinement such as seccomp or AppArmor, accepting that some legitimate Plotly rendering or data access may break. Input filtering or prompt hardening should be treated as defense-in-depth only because the root cause is unsafe execution of LLM-generated code, not a single malformed string.

Affected VersionsENISA

n/a n/a

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CVE-2026-51911 is a CWE-94 code injection in the Python-based Vanna framework, specifically VannaBase.get_plotly_figure in src/vanna/legacy/base/base.py. Vanna uses LLM output to generate and then execute Plotly/Python plotting code; because attacker-influenced prompt content can reach that generation step, the code path lacks sufficient separation between untrusted input and executed code, allowing arbitrary code or command execution depending on the exposed entry. The supplied CPE string is a placeholder (cpe:2.3:a:n/a:n/a:*:*:*:*:*:*:*), and EUVD lists affected versions as n/a n/a, so the only confirmed affected build from the input is v2.0.2; the CVSS vector rates network attack, low complexity, no privileges, and no user interaction, but the independent assessment stresses that the deploying application must expose the figure/plot-generation entry for exploitation.

Know when Python 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 (mitre) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.8 CRITICAL

Network-reachable exec of LLM-generated Plotly code via an exposed plotting entry gives unauthenticated RCE (PR:N/AC:L) with full host C/I/A impact; scope unchanged (S:U).

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

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
CVSS changed
Oct 05, 2026 - 19:22 NVD
9.8 (CRITICAL)
CVE Published
Oct 02, 2026 - 00:00 cve.org
CRITICAL 9.8
CVE Published
Oct 02, 2026 - 00:00 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

vanna v2.0.2 contains a code injection vulnerability in VannaBase.get_plotly_figure (src/vanna/legacy/base/base.py). Depending on the exposed entry, an attacker can trigger attacker-controlled code or command execution.

Executive ViewAI

Why It Matters

A critical code-injection flaw in Vanna 2.0.2, an open-source text-to-SQL and charting library embedded in internal analytics tools, allows an unauthenticated remote party to execute attacker-controlled code on any deployment where the plot-generation path is reachable from user-supplied questions or prompts. The true organizational exposure is concentrated in teams that wrapped Vanna in Flask, Streamlit, or API front ends without authentication or input gating; those services should be treated as internet-exposed until proven otherwise. Leadership should care because a single reachable analytics chatbot could become an unauthenticated foothold into the network, even though no public exploit code or active exploitation has been observed to date.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: enforce authentication and authorization on every Vanna-backed chart/chat endpoint; network-isolate or segment analytics services and block outbound egress; disable, stub, or sandbox the VannaBase.get_plotly_figure plotting path and reject untrusted prompt/parameter input; run the service as an unprivileged, containerized account without shell or command execution privileges; front exposed endpoints with a WAF/API gateway and monitor for anomalous process spawns and outbound connections; rotate any credentials or API keys accessible to affected deployments.

Threat Intelligence Overview

EPSS Score
0.4%
Top 73% exploitable
Prevalence
Low
niche open-source Python text-to-SQL/RAG library, modest production footprint
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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

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