PyPI: piccolo

CVE-2023-47128

Safety vulnerability ID: SFTY-20231110-33400

Safety legacy ID: pyup.io-63181

Piccolo 1.1.1 includes a fix for CVE-2023-47128: Prior to version 1.1.1, the handling of named transaction 'savepoints' in all database implementations is vulnerable to SQL Injection via f-strings. While the likelihood of an end developer exposing a 'savepoints' 'name' parameter to a user is highly unlikely, it would not be unheard of. If a malicious user was able to abuse this functionality they would have essentially direct access to the database and the ability to modify data to the level of permissions associated with the database user. A non exhaustive list of actions possible based on database permissions is: Read all data stored in the database, including usernames and password hashes; insert arbitrary data into the database, including modifying existing records; and gain a shell on the underlying server. https://github.com/piccolo-orm/piccolo/security/advisories/GHSA-xq59-7jf3-rjc6

Created at: Jul 5, 2026Updated at: Jul 5, 2026

Overview

piccolo SQL Injection via named transaction savepoints

Advisory

Piccolo 1.1.1 includes a fix for CVE-2023-47128: Prior to version 1.1.1, the handling of named transaction 'savepoints' in all database implementations is vulnerable to SQL Injection via f-strings. While the likelihood of an end developer exposing a 'savepoints' 'name' parameter to a user is highly unlikely, it would not be unheard of. If a malicious user was able to abuse this functionality they would have essentially direct access to the database and the ability to modify data to the level of permissions associated with the database user. A non exhaustive list of actions possible based on database permissions is: Read all data stored in the database, including usernames and password hashes; insert arbitrary data into the database, including modifying existing records; and gain a shell on the underlying server. https://github.com/piccolo-orm/piccolo/security/advisories/GHSA-xq59-7jf3-rjc6

Affected Package

Affecting piccolo package, versions>=0,<1.1.1

Also affects

---

How to Fix

Upgradepiccoloto1.1.1or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more