---
id: CVE-2026-4229
aliases:
  - GHSA-6mj8-jmp2-g8q7
  - PYSEC-2026-3397
title: Vanna has a SQL injection in the remove_training_data function
summary: Vanna has a SQL injection in the remove_training_data function
severity: high
cvss: 7.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L'
vendor: vanna
product: vanna
ecosystem: pip
affected:
  - vanna <= 2.0.2
published: '2026-03-16'
updated: '2026-07-13'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-6mj8-jmp2-g8q7'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-4229'
  - url: 'https://gist.github.com/YLChen-007/b4f326eaecc29b192cf93dc5d6bc0623'
  - url: 'https://github.com/vanna-ai/vanna'
  - url: 'https://vuldb.com/?ctiid.351152'
  - url: 'https://vuldb.com/?id.351152'
  - url: 'https://vuldb.com/?submit.771214'
tags:
  - osv
  - pip
epss: 0.00254
epssPercentile: 0.17229
ingestedAt: '2026-07-13T18:57:53.953Z'
---

## Overview

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.

## Affected packages

- `vanna <= 2.0.2`

## Remediation

Refer to the advisory for the patched release.
