Browse / RAG and Vector Store Weaknesses / CVE-2026-4229
Vanna has a SQL injection in the remove_training_data function
- Class
- RAG and Vector Store Weaknesses (filed by a model that read the advisory)
- Technique
- SQL and query injection
- Affected
- vanna (PyPI)
- CVSS
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- EPSS
- 0.3% chance of exploitation in 30 days
How it works, in short
The ID argument of a BigQuery vector store delete function is concatenated into SQL, letting callers inject query clauses. (Our summary, written by a model. The source text is below.)
Details
A flaw has been found in vanna-ai vanna up to 2.0.2. This impacts the function remove_training_data of the file src/vanna/legacy/google/bigquery_vector.py. This manipulation of the argument ID causes sql injection. The attack can be initiated remotely. The exploit has been published and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-4229
- https://gist.github.com/YLChen-007/b4f326eaecc29b192cf93dc5d6bc0623
- https://github.com/vanna-ai/vanna
- https://vuldb.com/?ctiid.351152
- https://vuldb.com/?id.351152
- https://vuldb.com/?submit.771214
Source: GitHub Advisory Database, used under CC BY 4.0.