CVE-2026-4231 vanna-ai vanna Endpoint __init__.py run_sql server-side request forgery
Remote attackers can exploit a server-side request forgery vulnerability in the vanna-ai library's SQL execution endpoint to access internal resources.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-4231?
CVE-2026-4231 is a medium-severity server-side request forgery vulnerability in vanna-ai vanna, published on 16 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-918
Which versions are affected by CVE-2026-4231?
How do I fix CVE-2026-4231?
No fix has been published for CVE-2026-4231 yet. Limit exposure of the affected software until one is available.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2026-4231 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-4231 exists.
Sources
Also known as GHSA-c8j7-9pjj-vhm4.