Vanna prompt injection code execution
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | vanna | <= 0.5.5 | no fix |
References
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-77, CWE-94- Platform
- Python (PyPI)
- Package
vanna- Disclosed
- 31.05.2024
- Updated
- 11.10.2026 13:17
Sources and licenses
OSV / GitHub Advisory Database - GHSA-7735-w2jp-gvg6 - CC BY 4.0
OSV / GitHub Advisory Database - PYSEC-2026-561 - PyPA Advisory Database; CC BY 4.0
Vulnerability history: vanna
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 4
- First → latest
- 05.2024 03.2026
- Without a fix
- 4
- Exploited in attacks
- 0
Severity breakdown
- Critical 1
- High 2
- Medium 1
Disclosures per year
- 2024: 3
- 2025: 0
- 2026: 1
-
Vanna prompt injection code execution this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.