Skip to content
VannaGHSA-7735-w2jp-gvg6

Vanna prompt injection code execution

Critical8.1CVE-2024-5565 · Published May 31, 2024 · updated Jun 29, 2026

GitHub advisory

Affected versions

PackageAffectedFixed in
vanna
PyPI
<= 0.5.5No fix yet
Details and references

The Vanna library uses a prompt function to present the user with visualized results, it is possible to alter the prompt using prompt injection and run arbitrary Python code instead of the intended visualization code. Specifically - allowing external input to the library’s “ask” method with "visualize" set to True (default behavior) leads to remote code execution.

CVSS 3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Severity from
GitHub (reviewed advisory)
Weakness
CWE-77, CWE-94
Also known as
CVE-2024-5565, PYSEC-2026-561

More Vanna advisories

All Vanna
DateAdvisory
Jun 272024vanna vulnerable to remote code execution caused by prompt injection
CVE-2024-5826Critical9.8no fix yet
Jul 52024Vanna vulnerable to SQL Injection
CVE-2024-5753High7.5no fix yet
Mar 16Vanna has a SQL injection in the remove_training_data function
CVE-2026-4229Medium7.3no fix yet

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.