CVE-2026-4513 vanna-ai vanna base.py ask sql injection

Medium 5.3 Published Updated

Remote attackers can execute arbitrary SQL commands via the ask function in the vanna-ai library, potentially accessing or modifying database contents.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-4513?

CVE-2026-4513 is a medium-severity SQL injection vulnerability in vanna-ai vanna, published on 21 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A vulnerability was detected in vanna-ai vanna up to 2.0.2. Affected by this vulnerability is the function ask of the file vanna\legacy\base\base.py. Performing a manipulation results in sql injection. The attack is possible to be carried out remotely. The exploit is now public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.

Weakness: CWE-89, CWE-74

Which versions are affected by CVE-2026-4513?

How do I fix CVE-2026-4513?

No fix has been published for CVE-2026-4513 yet. Limit exposure of the affected software until one is available.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2026-4513 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-4513 exists.

Sources

Also known as GHSA-jvhj-49gh-v77p.

Is CVE-2026-4513 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free