Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted request to update_sql endpoint
-
ExploitInject malicious URL parameter
-
ExecutionTrigger server-side HTTP request
-
ImpactAccess internal resources or services
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | vanna-ai vanna versions up to 2.0.2 with Flask endpoint enabled. No authentication required. Attacker must reach the vulnerable update_sql/run_sql endpoint at src/vanna/legacy/flask/__init__.py. |
| Impact | The CVSS 3.1 score of 7.3 indicates high severity with network-based attack vector (AV:N), low complexity (AC:L), and no privileges required (PR:N), making this easily exploitable by remote attackers. The availability of a public proof-of-concept exploit significantly elevates the real-world risk, as demonstrated by the exploit status indicator (E:P) in the CVSS vector. While not currently in CISA's KEV catalog, the combination of remote exploitability, public POC availability, and the vendor's lack of response despite early notification creates a concerning risk profile. The impact spans confidentiality, integrity, and availability (all rated Low), suggesting attackers could read sensitive data, modify requests, or cause service disruptions. |
| Exploit ScenarioDerived | An attacker could send a crafted request to the vulnerable Flask endpoint containing a malicious URL in parameters processed by update_sql or run_sql functions, causing the server to make requests to internal services like cloud metadata endpoints (169.254.169.254) or internal databases. Given the low attack complexity and availability of a public proof-of-concept, this attack could be easily automated to scan for and exploit vulnerable instances across the internet. The attacker requires no authentication, making any internet-exposed instance of the affected versions immediately vulnerable to reconnaissance and data exfiltration attempts. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 16, 2026
Server-side request forgery in Vanna AI versions up to 2.0.2 allows unauthenticated remote attackers to manipulate the update_sql and run_sql endpoints in the Flask component. Public exploit code exists for this vulnerability, and no patch is currently available from the vendor despite early notification.
Earlier versions of this analysis (1)
A server-side request forgery (SSRF) vulnerability exists in the vanna-ai vanna library through version 2.0.2, specifically in the update_sql and run_sql functions within the Flask endpoint component. This vulnerability allows remote attackers without authentication to manipulate internal requests, potentially accessing internal resources, exfiltrating data, or pivoting to internal systems. A public proof-of-concept exploit is available, though the vulnerability is not currently listed in CISA's KEV catalog.
RemediationAI
No official patch is currently available as the vendor has not responded to the disclosure. Organizations using vanna versions 2.0.2 or earlier should immediately consider migrating to alternative solutions or implementing compensating controls. As a temporary mitigation, restrict network access to the affected Flask endpoints through firewall rules or reverse proxy configurations, implement strict input validation for any data passed to update_sql/run_sql functions, and monitor for suspicious outbound requests from the application server. Review the public exploit at https://gist.github.com/YLChen-007/574542015755951ee1d53206022cc754 to understand attack patterns for detection purposes.
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 affects vanna-ai's vanna library, a Python-based tool for natural language to SQL generation, specifically in versions up to and including 2.0.2 as identified by CPE cpe:2.3:a:vanna-ai:vanna:*:*:*:*:*:*:*:*. The flaw resides in the src/vanna/legacy/flask/__init__.py file where the update_sql and run_sql endpoint functions fail to properly validate and sanitize user-supplied input before using it to make server-side requests. This is a classic CWE-918 (Server-Side Request Forgery) vulnerability where attackers can coerce the application to make arbitrary HTTP requests to internal or external systems on their behalf.
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:N/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 was found in vanna-ai vanna up to 2.0.2. Affected by this vulnerability is the function update_sql/run_sql of the file src/vanna/legacy/flask/__init__.py of the component Endpoint. Performing a manipulation results in server-side request forgery. The attack may be initiated remotely. The exploit has been made public and could be used. The vendor was contacted early about this disclosure but did not respond in any way.
Executive ViewAI
A critical server-side request forgery vulnerability in the vanna-ai library (versions through 2.0.2) allows unauthenticated attackers to access internal resources and sensitive data. Organizations using this library in production environments face immediate risk of data exfiltration and lateral movement into internal systems, with active exploit code publicly available.
Implement Web Application Firewall (WAF) rules to block requests containing internal IP ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 127.0.0.1) and localhost references. Restrict network-level egress from application servers to only required external destinations. Disable or isolate the update_sql and run_sql Flask endpoints until patched. Enforce network segmentation to limit attacker lateral movement. Implement request rate limiting and IP-based access controls. Deploy runtime application self-protection (RASP) to monitor for SSRF attack patterns.
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
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
Arbitrary 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
SQL injection in Vanna AI's BigQuery integration (versions up to 2.0.2) allows unauthenticated remote attackers to manip
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
SQL injection in Vanna up to version 2.0.2 allows authenticated remote attackers to execute arbitrary SQL queries throug
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-12376
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB