NetSight
critical8.1

CVE-2024-5565

Vanna prompt injection code execution

Impact

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 packages

EcosystemPackageAffectedFixed in
pipvanna<= 0.5.5none recorded

Weakness classification

References