Is sqlalchemy 0.2 vulnerable?

PyPI · 9 releases from 0.2.0 to 0.2.8 · latest sqlalchemy is 2.1.9 · checked 18 Nov 2026

Yes: 3 known advisories

Yes. sqlalchemy 0.2.8, the last 0.2 release, is affected by 3 known security advisories (3 critical), including CVE-2012-0805, CVE-2019-7164, CVE-2019-7548. Upgrade to 1.3.0b3 or later to fix all of them.

Upgrade with:pip install 'sqlalchemy>=1.3.0b3'

Is your project on an affected sqlalchemy?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Advisories affecting sqlalchemy 0.2.8

  • CriticalCVE-2012-0805GHSA-hfg2-wf6j-x53p14 May 2022

    SQLAlchemy vulnerable to SQL injection

    Affected
    <0.7.0b4
    Fixed in
    0.7.0b4
  • CriticalCVE-2019-7164GHSA-887w-45rq-vxgf16 Apr 2019

    SQLAlchemy vulnerable to SQL Injection via order_by parameter

    Affected
    <1.3.0b3
    Fixed in
    1.3.0b3
  • CriticalCVE-2019-7548GHSA-38fc-9xqv-7f7q16 Apr 2019

    SQLAlchemy is vulnerable to SQL Injection via group_by parameter

    Affected
    <1.2.19
    Fixed in
    1.2.19

Every sqlalchemy 0.2.x release

Affected: 0.2.0 to 0.2.8. Latest sqlalchemy: 2.1.9.

VersionKnown advisories
sqlalchemy 0.2.8CVE-2012-0805, CVE-2019-7164, CVE-2019-7548
sqlalchemy 0.2.7CVE-2012-0805, CVE-2019-7164, CVE-2019-7548
sqlalchemy 0.2.6CVE-2012-0805, CVE-2019-7164, CVE-2019-7548
sqlalchemy 0.2.5CVE-2012-0805, CVE-2019-7164, CVE-2019-7548
sqlalchemy 0.2.4CVE-2012-0805, CVE-2019-7164, CVE-2019-7548
sqlalchemy 0.2.3CVE-2012-0805, CVE-2019-7164, CVE-2019-7548
sqlalchemy 0.2.2CVE-2012-0805, CVE-2019-7164, CVE-2019-7548
sqlalchemy 0.2.1CVE-2012-0805, CVE-2019-7164, CVE-2019-7548
sqlalchemy 0.2.0CVE-2012-0805, CVE-2019-7164, CVE-2019-7548

Which of your client projects are still on sqlalchemy 0.2?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact sqlalchemy version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other sqlalchemy versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the PyPI registry. Refreshed daily.