High

Vanna prompt injection code execution

  • Disclosed: 31.05.2024
  • Updated: 11.10.2026 13:17

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.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) vanna <= 0.5.5 no fix

References

CVSS score 8.1/10
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

  1. 2024: 3
  2. 2025: 0
  3. 2026: 1
  1. Medium · 7.3 CVE-2026-4229 <= 2.0.2 no fix
  2. High · 7.5 CVE-2024-5753 <= 0.3.4 no fix
  3. Critical · 9.8 CVE-2024-5826 <= 0.6.2 no fix
  4. Vanna prompt injection code execution this entry
    High · 8.1 CVE-2024-5565 <= 0.5.5 no fix

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.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.