Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | The CVSS 3.1 score of 6.3 reflects a medium-severity vulnerability with network accessibility (AV:N), low attack complexity (AC:L), and low privilege requirements (PR:L). The CVSS vector indicates the attacker needs valid credentials but no user interaction, affecting confidentiality, integrity, and availability equally (C:L/I:L/A:L). The exploitation probability (E:P in the vector) is marked as 'Proof-of-Concept', confirming public exploit availability, which significantly elevates practical risk. The lack of vendor response (RL:X) and reproducible complexity (RC:R) suggest this issue warrants immediate attention despite moderate CVSS scoring. From an SSVC perspective, exploitation is public and likely automatable given the straightforward SQL injection pattern, the technical impact spans confidentiality/integrity, and affected systems are likely internet-facing. This represents a high real-world priority vulnerability for any organization running vanna-ai/vanna, particularly given the SQL injection nature and public POC. |
| Exploit ScenarioDerived | An authenticated user with valid credentials sends a crafted HTTP request to the update_sql endpoint with malicious SQL injection payloads embedded in the parameters. The endpoint processes the input without proper sanitization and directly constructs a SQL query, allowing the attacker to execute arbitrary SQL commands such as extracting sensitive data, modifying database records, or executing administrative functions. With the public proof-of-concept available on GitHub, an attacker can easily replicate the attack against any unpatched vanna-ai instance accessible over the network. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 16, 2026
SQL injection in Vanna up to version 2.0.2 allows authenticated remote attackers to execute arbitrary SQL queries through the update_sql endpoint function. Public exploit code exists for this vulnerability, and the vendor has not released a patch despite early notification. An authenticated attacker can leverage this to read, modify, or delete database contents depending on the application's database permissions.
Earlier versions of this analysis (1)
A SQL injection vulnerability exists in the update_sql endpoint function within vanna-ai/vanna versions up to 2.0.2, allowing authenticated attackers to inject arbitrary SQL commands with remote network access. An attacker with valid credentials can manipulate the endpoint to execute unauthorized database queries, potentially leading to unauthorized data access, modification, or denial of service. A public proof-of-concept has been disclosed and is actively available, increasing the real-world exploit risk despite the vendor's lack of response to early disclosure.
RemediationAI
Upgrade vanna-ai vanna to a version released after 2.0.2 that includes SQL injection remediation (vendor should be contacted directly for patched version availability given the lack of previous communication). If an immediate upgrade is not feasible, implement input validation and parameterized queries at the application level, restrict network access to the Flask endpoint to trusted IP ranges or VPN-only connections, enforce authentication token rotation, and disable the legacy Flask endpoint if not in active use. Monitor database query logs and application audit trails for suspicious SQL patterns. Contact vanna-ai directly through GitHub or their official support channel to obtain security patch information. References: https://gist.github.com/YLChen-007/48b86c2365e5ebf6923d5f14491b4329 (public POC), https://vuldb.com/?id.351153 (VulDB entry).
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
The vulnerability resides in the legacy Flask application component (src/vanna/legacy/flask/__init__.py) of vanna-ai/vanna, a Python-based SQL generation and querying framework. The root cause is classified as CWE-89 (SQL Injection), where user-supplied input to the update_sql endpoint function is not properly sanitized or parameterized before being incorporated into SQL queries. The affected CPE is cpe:2.3:a:vanna-ai:vanna:*:*:*:*:*:*:*:*, indicating all versions up to 2.0.2 are vulnerable. The Flask web framework serves as the attack surface, with the endpoint directly exposing the injection vector to authenticated users over HTTP/HTTPS.
Know when Vanna 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:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
5DescriptionCVE.org
A vulnerability has been found in vanna-ai vanna up to 2.0.2. Affected is the function update_sql of the file src/vanna/legacy/flask/__init__.py of the component Endpoint. Such manipulation leads to sql injection. The attack can be launched remotely. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
Executive ViewAI
Organizations using vanna-ai vanna should be aware of moderate risk from CVE-2026-4230, a SQL injection vulnerability rated CVSS 6.3. Exploitation could allow attackers to execute code or inject malicious input. Proof-of-concept code is publicly available. Organizations should apply vendor updates when available and monitor for exploitation.
Apply vendor patch. If patching is delayed: deploy WAF rules, restrict network access, enable logging.
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
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Related Vulnerabilities in vanna-ai vanna SQL Injection Vulnerabilities
View all 2Arbitrary file write and unauthorized file read in Vanna (the open-source AI SQL agent) through version 2.0.2 allows una
Missing authentication in vanna-ai vanna Chat API endpoint (/api/vanna/v2/) allows unauthenticated remote attackers to p
Improper authorization in Vanna AI's Legacy Flask API allows remote unauthenticated attackers to bypass authentication c
Server-side request forgery in Vanna AI versions up to 2.0.2 allows unauthenticated remote attackers to manipulate the u
A code injection vulnerability exists in vanna-ai vanna up to version 2.0.2, specifically in the exec function of the /s
SQL injection in vanna-ai vanna versions up to 2.0.2 allows authenticated remote attackers to manipulate the ask functio
Cross-Origin Resource Sharing (CORS) misconfiguration in vanna-ai vanna up to version 2.0.2 allows authenticated remote
Deserialization vulnerability in vanna 2.0.0, 2.0.1 and 2.0.2 allows a locally-positioned attacker with low-level privil
EUVD-2026-12375
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB