News and Updates
SQLAlchemy 2.0.59 Released
December 04, 2026 permalink
SQLAlchemy 2.0.59 is now available.
Release 2.0.59 contains a series of bugfixes backported from the 2.1.x series. Identifiers and inline literal values that contain the text of one of SQLAlchemy's internal placeholder tokens are now refused, as this text could be replaced when the statement was executed, allowing SQL to be injected where such names or values came from untrusted input; values passed as bound parameters were not affected. This issue is described in security advisory GHSA-r8f3-r58r-x62g. The release also fixes several issues where an ORM-enabled update() or delete() using synchronize_session="evaluate" would leave objects in the Session with values that disagreed with the database, and maps PostgreSQL errors raised by the asyncpg dialect to the appropriate DBAPI exception subclass, along with fixes for the event registry and the MySQL, SQLite and SQL Server dialects.
The detailed changelog for 2.0.59 is at Changelog.
SQLAlchemy 2.0.59 is available on the Download Page.