Install
SQLAlchemy
Database Abstraction Library
2.1.9Latest, 16 Nov 2026
44MDownloads, last month
0Advisories on the latest
6Advisories, all versions
MITLicence
12KStars
5.2/10OpenSSF Scorecard
Source · Homepage · Ask AI Mode · · Markdown
Known advisories
| Severity | Advisory | Fix | Published |
|---|---|---|---|
| Critical | SQLAlchemy vulnerable to SQL injection CVE-2012-0805 | Fixed in 0.7.0b4 | 14 May 2022 |
| Critical | SQLAlchemy is vulnerable to SQL Injection via group_by parameter CVE-2019-7548 | Fixed in 1.2.19 | 16 Apr 2019 |
| Critical | SQLAlchemy vulnerable to SQL Injection via order_by parameter CVE-2019-7164 | Fixed in 1.3.0b3 | 16 Apr 2019 |
| PYSEC-2019-123 CVE-2019-7164 | Fixed in 1.3.0b3 | 20 Feb 2019 | |
| PYSEC-2019-124 CVE-2019-7548 | Fixed in 1.2.18 | 6 Feb 2019 | |
| PYSEC-2012-9 CVE-2012-0805 | Fixed in 0.7.0 | 5 Jun 2012 |
In the news
- Root Cause and Resolution Patterns for Deadlocks Triggered by SQLAlchemy's Implicit Flush dev.to, 2 Dec 2026
- Root Causes of SQLAlchemy's N+1 Query Problem Under Lazy Loading and Patterns to Eliminate It dev.to, 2 Dec 2026
- Preventing Transaction Corruption on Forceful Worker Termination: A Safe Shutdown Mechanism for Celery and SQLAlchemy dev.to, 1 Dec 2026
- Preventing Production Deadlocks: Fixing SQLAlchemy's Implicit Autoflush with a Custom Python AST Static Analyzer dev.to, 29 Nov 2026
- A Unit of Work for SQLAlchemy 2.1: One Commit per Use Case, a Fake for pytest dev.to, 29 Nov 2026
On Hacker News
- SQLAlchemy 2.0 Released 264 points, 82 comments, 26 Jan 2023
- SQLAlchemy 1.4 234 points, 76 comments, 17 Mar 2021
- Migrating to SQLAlchemy 2.0 198 points, 106 comments, 18 Feb 2021
- Reasons to love SQLAlchemy 188 points, 99 comments, 24 Sep 2015
Sources: PyPI, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.